-
Notifications
You must be signed in to change notification settings - Fork 10
/
.travis.yml
27 lines (26 loc) · 900 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
27
language: rust
rust:
- nightly
- beta
- stable
env:
global:
# GH_TOKEN
- secure: Pl+DwgrvHWXBK6LP87vPSqQST9rv1a+7as9dnnI099leV2eD3ZYJKL1aOJNLLhlmxcZ6gElm81nP+yXmFTbPXmYIQ7+Dtok1fz4lxcd04bUfb1fiQtJy+t+Z7kTxKa/mOKOT6a4VXoKsTKMps8H0mPAbmSDlEmLACv4V5x9t6As=
script:
- cargo build --verbose
- cargo test --verbose
- cargo doc --verbose
- '[ "$TRAVIS_RUST_VERSION" != "nightly" ] || 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