Skip to content

Commit

Permalink
Travis better code. (#1118)
Browse files Browse the repository at this point in the history
Signed-off-by: Hal Gentz <[email protected]>
  • Loading branch information
goddessfreya committed Mar 10, 2019
1 parent f0d9890 commit 521a352
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,15 @@ after_success:
- |
[ $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 ..
cd glutin
for crate in ../glutin_*; do
# We can't do the glutin crate first because it depends on the others.
if [ "$crate" != "glutin" ]; then
cd "$crate"
cargo publish --token ${CRATESIO_TOKEN}
fi
done
cd ../glutin
cargo publish --token ${CRATESIO_TOKEN}
}
1 change: 1 addition & 0 deletions glutin_examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ repository = "https://github.com/tomaka/glutin"
license = "Apache-2.0"
build = "build.rs"
edition = "2018"
publish = false

[dependencies]
glutin = { path = "../glutin" }
Expand Down

0 comments on commit 521a352

Please sign in to comment.