Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

travis-after-all

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

travis-after-all - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

34

CHANGELOG.md

@@ -0,31 +1,37 @@

### 1.4.1 (September 13, 2015)
* [[`471d33763e`](https://github.com/alrra/travis-after-all/commit/471d33763e1311ce6e2997adcf45ff9a75b04653)] -
Update and improve the content from the `README.md` file.
### 1.4.0 (September 10, 2015)
* Make `travis-after-all` take partial decisions
[[#3](https://github.com/alrra/travis-after-all/issues/3),
[2a656d9](https://github.com/alrra/travis-after-all/commit/2a656d9390543ceba776a2c790805bbfdad68e2b)].
* [[`2a656d9390`](https://github.com/alrra/travis-after-all/commit/2a656d9390543ceba776a2c790805bbfdad68e2b)] -
Make `travis-after-all` take partial decisions
(see also: [`#4`](https://github.com/alrra/travis-after-all/issues/4)).
### 1.3.0 (August 12, 2015)
* Make `$(npm bin)/travis-after-all` actually work
[[072a211](https://github.com/alrra/travis-after-all/commit/072a2110aea79a05d05fe2e7ef23edbc5536621a)].
* [[`072a2110ae`](https://github.com/alrra/travis-after-all/commit/072a2110aea79a05d05fe2e7ef23edbc5536621a)] -
Make `$(npm bin)/travis-after-all` actually work.
### 1.2.0 (August 12, 2015)
* Make `curl -sSL https://.../travis-after-all.js | node` actually work
[[f22fd1e](https://github.com/alrra/travis-after-all/commit/f22fd1e83a72bc53b41212921883e09ef6227c95)].
* [[`f22fd1e83a`](https://github.com/alrra/travis-after-all/commit/f22fd1e83a72bc53b41212921883e09ef6227c95)] -
Make `curl -sSL https://.../travis-after-all.js | node` actually work.
### 1.1.0 (August 9, 2015)
* Add missing `main` field in `package.json`
[[abe4efe](https://github.com/alrra/travis-after-all/commit/abe4efe3d802f3eeffd9a4a910ef0bd7067230af)].
* [[`abe4efe3d8`](https://github.com/alrra/travis-after-all/commit/abe4efe3d802f3eeffd9a4a910ef0bd7067230af)] -
Add missing `main` field in `package.json`.
### 1.0.0 (August 9, 2015)
* Make module requireable
([#2](https://github.com/alrra/travis-after-all/issues/2)).
* [[`e7a900bdd7`](https://github.com/alrra/travis-after-all/commit/e7a900bdd78af498a445174420c95caafe2218d6)] -
Make module requireable
(see also: [`#2`](https://github.com/alrra/travis-after-all/issues/2)).
### 0.1.3 (July 11, 2015)
* Fix `npm` related usage example from `README.md`
[[9196c8a](https://github.com/alrra/travis-after-all/commit/9196c8a36eba8fe3b187077fc9d4cf09c0a34eb1)].
* [[`9196c8a36e`](https://github.com/alrra/travis-after-all/commit/9196c8a36eba8fe3b187077fc9d4cf09c0a34eb1)] -
Fix `npm` related usage example from `README.md`.

@@ -32,0 +38,0 @@ ### 0.1.2 (June 27, 2015)

@@ -29,3 +29,3 @@ var crypto = require('crypto');

CHECK_INTERVAL_LIMIT: 60000,
CHECK_INTERVAL_LIMIT: 30000,
checkInterval: 1000,

@@ -32,0 +32,0 @@

@@ -43,3 +43,3 @@ {

},
"version": "1.4.0"
"version": "1.4.1"
}

@@ -6,8 +6,8 @@ # travis-after-all

`travis-after-all` is a simple script that can help you execute
code only once in a [build matrix](http://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix)
`travis-after-all` is a script that can help you execute code only once
in a [build matrix](http://docs.travis-ci.com/user/customizing-the-build/#Build-Matrix)
based on whether the build has succeeded or failed.
Or to put it in another way, `travis-after-all` is basically a
temporary workaround for: [travis-ci/travis-ci#929](https://github.com/travis-ci/travis-ci/issues/929).
Or to put it in another way, `travis-after-all` is basically a temporary
workaround for: [`travis-ci/travis-ci#929`](https://github.com/travis-ci/travis-ci/issues/929).

@@ -17,8 +17,8 @@

__[1]__ Include the command that executes the `travis-after-all`
script inside [`after_script`](http://docs.travis-ci.com/user/customizing-the-build/#The-Build-Lifecycle)
(or inside of a script that is included inside `after_script`).
__[1]__ Include the command that executes the `travis-after-all` script
inside [`after_script`](http://docs.travis-ci.com/user/customizing-the-build/#The-Build-Lifecycle)
(or inside of a script that is included inside `after_script`).
__[2]__ Based on the exit code of `travis-after-all`, run your
custom code
__[2]__ Based on the (exit) code returned by `travis-after-all`, run
your custom code.

@@ -29,26 +29,29 @@ See [examples](#usage-examples).

Exit codes meaning:
Terminology:
* `0` - the job that gets this exit code is the one assigned to run the
code if the build succeeded
* A __job passed__ if either the tests passed, or the tests failed,
but the job was [allowed to fail](http://docs.travis-ci.com/user/customizing-the-build/#Rows-that-are-Allowed-To-Fail).
* `1` - the job that gets this exit code is the one assigned to run the
code if the build failed
* A __build succeeded__ if all jobs passed and there is at least one
job who's tests passed.
* `2` - the job that gets this exit code was not assigned to do anything
* A __build failed__ if there is at least one job that didn't pass,
or if all jobs passed, but for all of them the tests failed.
--
Terminology:
Meaning of (exit) codes:
* a __job passed__ if either the tests passed or the tests failed but
the job was [allowed to fail](http://docs.travis-ci.com/user/customizing-the-build/#Rows-that-are-Allowed-To-Fail)
* `0` - is returned to the job that was assigned to run the code if
the __build succeeded__
* a __build succeeded__ if all jobs passed and there is at least one
job who's tests passed
* `1` - is returned to the job that was assigned to run the code if
the __build failed__
* a __build failed__ if there is at least one job who didn't pass, or
if all jobs passed but for all of them the tests failed
* `2` - is returned to the jobs that where not assigned to do anything
* `3` - is returned if something went wrong (e.g.: `travis-after-all`
failed to connect to Travis CI's API)
## Usage examples

@@ -58,3 +61,3 @@

Install `travis-afer-all` as a `devDependency`:
Install `travis-after-all` as a `devDependency`.

@@ -65,3 +68,3 @@ ```bash

then, in your `.travis.yml` file, add:
Then, in your `.travis.yml` file, add:

@@ -99,3 +102,4 @@ ```bash

You can also run `travis-afer-all` from within your `node` script, e.g.:
You can also run `travis-after-all` from within your `node` script,
e.g.:

@@ -105,12 +109,14 @@ ```js

function callback(exitCode, error) {
function callback(code, error) {
if ( error ) {
if ( error !== undefined ) {
// ...
} else {
if ( exitCode === 0 ) {
if ( code === 0 ) {
// Here goes the code that needs to be executed if the build succeeded
} else if ( exitCode === 1) {
} else if ( code === 1) {
// Here goes the code that needs to be executed if the build failed
}
}

@@ -125,2 +131,5 @@

:warning: If your using this method, please try to keep up with the
releases and update the version number once a new version is released.
In your `.travis.yml` file add:

@@ -140,3 +149,3 @@

curl -sSL https://raw.githubusercontent.com/alrra/travis-after-all/1.4.0/lib/travis-after-all.js | node
curl -sSL https://raw.githubusercontent.com/alrra/travis-after-all/1.4.1/lib/travis-after-all.js | node
exitCode=$?

@@ -162,3 +171,3 @@

it can be use no matter what [build environment](http://docs.travis-ci.com/user/ci-environment/)
you use.
you have.

@@ -165,0 +174,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc