Skip to content
This repository has been archived by the owner on Nov 27, 2018. It is now read-only.

Figure out what to do when there are multiple jobs in a single Travis run #90

Open
marco-c opened this issue Oct 15, 2015 · 5 comments
Open

Comments

@marco-c
Copy link
Contributor

marco-c commented Oct 15, 2015

The after_success script is executed for each job (e.g. each Node.js version specified in .travis.yml), which means auto-deploy is executed multiple times.

@marco-c
Copy link
Contributor Author

marco-c commented Oct 15, 2015

For example: https://travis-ci.org/marco-c/oghliner/builds/85635318

Travis logs for the two builds:
log1.txt
log2.txt

@marco-c
Copy link
Contributor Author

marco-c commented Oct 15, 2015

One possible solution would be to parse the .travis.yml and only run deploy on Travis if the Node.js version which is running the script is the newest one specified in .travis.yml.

@marco-c
Copy link
Contributor Author

marco-c commented Oct 21, 2015

One possible solution would be to parse the .travis.yml and only run deploy on Travis if the Node.js version which is running the script is the newest one specified in .travis.yml.

Actually, this isn't a viable solution. There are many variables that could make Travis spin multiple jobs per build.

@mykmelez
Copy link
Contributor

See travis-ci/travis-ci#929 for the Travis feature request.

@mykmelez
Copy link
Contributor

mykmelez commented Nov 2, 2015

Per that issue, this script might help:

https://github.com/dmakhno/travis_after_all

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants