aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorTill Hoeppner2015-04-19 20:18:58 +0200
committerTill Hoeppner2015-04-19 20:18:58 +0200
commit358eb0769750059561ae58797f049918c703fe79 (patch)
tree304eca3fb5755106948aac5d1ebff374e504ab6d /.travis.yml
parent11969d703e1f2653ac965adbb2cf00b67ff00c5a (diff)
downloadirsc-358eb0769750059561ae58797f049918c703fe79.tar.gz
irsc-358eb0769750059561ae58797f049918c703fe79.tar.xz
irsc-358eb0769750059561ae58797f049918c703fe79.zip
Add auto-publishing by Travis (for real?)
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml24
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=