Skip to content

Commit

Permalink
Travis update. (#1117)
Browse files Browse the repository at this point in the history
Signed-off-by: Hal Gentz <[email protected]>
  • Loading branch information
goddessfreya authored Mar 10, 2019
1 parent 7ed5dbe commit f0d9890
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ script:

after_success:
- |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo publish --token ${CRATESIO_TOKEN}
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] && {
CRATES=$(for crate in glutin*; do echo "$crate"; done | sort -r | grep -v "_examples")
for crate in $CRATES; do
echo "Doing $crate"
cd "$crate"
cargo publish --token ${CRATESIO_TOKEN}
cd ..
done
}

0 comments on commit f0d9890

Please sign in to comment.