From 521a3522e348f5c52a5490b1a659f417698ea953 Mon Sep 17 00:00:00 2001 From: Hal Gentz Date: Sat, 9 Mar 2019 22:22:43 -0700 Subject: [PATCH] Travis better code. (#1118) Signed-off-by: Hal Gentz --- .travis.yml | 16 ++++++++++------ glutin_examples/Cargo.toml | 1 + 2 files changed, 11 insertions(+), 6 deletions(-) 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" }