forked from wackywendell/primes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
26 lines (25 loc) · 884 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
language: rust
rust:
- nightly
- beta
env:
global:
- secure: jHaQxUCPsFgcVfGn1Gw+GX+3GrmJjXOpEfHfoaeHz03r58IIzYD1mFL1/QjCPR8nn2X1GCuUzFaJtYB/1xmgYC6HZP7kFBGkygBEt0Jiem/lru328WNRD3/j9wQi1OL6+cTcNcz0+4oTiwvctqA8p3OcuKCr+VDiQnspq+orLHM=
# GH_TOKEN
script:
- cargo build --verbose
- cargo test --verbose
- cargo doc --verbose
- '[ "$TRAVIS_RUST_VERSION" = "beta" ] || cargo bench --verbose # adapted from rust-itertools'
- mv target/doc doc
after_success: |
[ "$TRAVIS_RUST_VERSION" = "beta" ] &&
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
echo '<meta http-equiv=refresh content=0;url=primes/index.html>' > doc/index.html &&
pip install ghp-import --user $USER &&
$HOME/.local/bin/ghp-import -n doc &&
git push -f https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
notifications:
email:
on_success: never