-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
34 lines (34 loc) · 1.03 KB
/
.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
28
29
30
31
32
33
34
language: rust
rust:
- 1.8.0
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
sudo: false
before_install:
- mkdir -p ~/.ssh
- openssl aes-256-cbc -K $encrypted_42671023cf37_key -iv $encrypted_42671023cf37_iv -in publish-key.enc -out ~/.ssh/publish-key -d
- chmod u=rw,og= ~/.ssh/publish-key
- echo "Host github.com" >> ~/.ssh/config
- echo " IdentityFile ~/.ssh/publish-key" >> ~/.ssh/config
- git --version
- git remote set-url origin [email protected]:sacundim/rust-rand-split.git
- git fetch origin -f gh-pages:gh-pages
script:
- cargo build --verbose
- cargo test --verbose
- |
[ $TRAVIS_RUST_VERSION != nightly ] || (
cargo bench
)
- cargo doc
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = nightly ] &&
echo '<meta http-equiv=refresh content=0;url=rand_split/index.html>' > target/doc/index.html &&
pip install ghp-import --user $USER &&
$HOME/.local/bin/ghp-import -n -p -m "Update gh-pages." target/doc