forked from M-Labs/libfringe
refine the Travis CI setup
This commit is contained in:
parent
0bebfae21d
commit
7fd71aeb05
|
@ -1,12 +1,9 @@
|
|||
language: rust
|
||||
install:
|
||||
- sudo pip install ghp-import
|
||||
- .travis/docs/install
|
||||
script:
|
||||
- cargo test
|
||||
- cargo bench
|
||||
- cargo doc --no-deps
|
||||
after_success: |
|
||||
echo '<meta http-equiv="refresh" content="0;url=fringe/">' > target/doc/index.html &&\
|
||||
ghp-import -n target/doc &&\
|
||||
git remote set-url origin https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git &&\
|
||||
git push -f origin gh-pages
|
||||
after_success:
|
||||
- .travis/docs/after_success
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH" = master ]; then
|
||||
echo '<meta http-equiv="refresh" content="0;url=fringe/">' > target/doc/index.html
|
||||
ghp-import -n target/doc
|
||||
git remote set-url origin "https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}"
|
||||
git push -f origin gh-pages
|
||||
fi
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ "$TRAVIS_PULL_REQUEST" = false ] && [ "$TRAVIS_BRANCH" = master ]; then
|
||||
sudo pip install ghp-import
|
||||
fi
|
Loading…
Reference in New Issue