diff options
-rw-r--r-- | .travis.yml | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/.travis.yml b/.travis.yml index 8cac6f1..21839e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,14 +1,18 @@ language: rust -after_success: | - [ $TRAVIS_BRANCH = master ] && - [ $TRAVIS_PULL_REQUEST = false ] && - cargo doc && - echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html && - sudo pip install ghp-import && - ghp-import -n target/doc && - git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages && - cargo login && - cargo publish +after_success: + -| + [ $TRAVIS_BRANCH = master ] && + [ $TRAVIS_PULL_REQUEST = false ] && + cargo doc && + echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html && + sudo pip install ghp-import && + ghp-import -n target/doc && + git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages + -| + [ $TRAVIS_BRANCH = master ] && + [ $TRAVIS_PULL_REQUEST = false ] && + cargo publish --publish ${CRATESIO-TOKEN} + env: global: - secure: QesmFK+1DtDlYx8bnAC7nKKo/OeZziH+XTDjJFwPiKu7+fHk7bbO7pkd7jPLQTMR037nmvyIr0OwXlZQqA6pE6OyLd/4gUHzUfRP2NNCWIJIh1gqpOZDu29qW79RjKFHdEzuJLsKppJ8cnMlN2P9h/JpZuQBZZoRtFNFmi2OvNE= |