diff --git a/.travis.yml b/.travis.yml index 65defa08d9..17a93e80c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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} } diff --git a/glutin_examples/Cargo.toml b/glutin_examples/Cargo.toml index 05661a89fe..5da772860b 100644 --- a/glutin_examples/Cargo.toml +++ b/glutin_examples/Cargo.toml @@ -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" }