forked from rust-embedded/discovery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
65 lines (49 loc) · 2.22 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
cache: cargo
dist: trusty
language: rust
rust: nightly
services: docker
sudo: required
env:
global:
- secure: Ugv5ArwniODKreVleFFhSfjfWQmKUd+MbvpPseiTBqgIaMSrz4G92FL7plo/Qdn8lecQRDJTb1Li76DxnNlwTiwrvpc85iGyNS2AJUv/xWqvzXq424mLpvoqSKNjRcDotIHIHJ7VHjTRP79ScSPMQwdEXHfv7YgGHIQ+1nQUVJ7mxQQVeUtV/Qsm1CwNQy8oQiDVKa57/mEisNlWILeAgSloQIVLmin2nH6kTO/sW5DanagLhgqZ3YjQw7WNZvkPYuQmH9x/Sa8h8zs3OjGZ+3qRNxKMk0gn/TuyDwdznrJA3RBns39lmV2IMv963QJNcWPacNeSgEBlEU+vh4rKxA39dm2b4NZfiUBJApRLDFGu7aT6nkc77Km7z77XQ4cf8T51Fnr0rr3BvIKobZsIo8I4jm12cMbGmAqHs5Sk/cySguPEjUqH/KC5MNH2uxEa+HaGw7wUWUVO0wXbXq+0aYFz+o/rE0e3hQnQPJiefe5Wzjc/7kjls9aQgbFU7KO0u/0FtEraqlimrCvBFWx/6rDJs2Sx7KNqG9/gbMANaZGE36gFMnf/bdeX+tIl9g5XgLJFcD9AJ0XX5/DibY0xsgHmeEdxN+BOfm8m41WJ6ycFdsPWbMi7UrDU/+QxYRD9e7l0ihOoOqvQeU5GYfMfmuQ+B3bl+v6BFwyYaHZLQww=
- TARGET=x86_64-unknown-linux-gnu
install:
# NOTE(TRAVIS_BRANCH) Travis is configured to only build *pushes* (not PRs).
- if [ $TRAVIS_BRANCH != master ] || [ $TRAVIS_EVENT_TYPE = cron ]; then
curl https://sh.rustup.rs -sSf |
sh -s -- -y --default-toolchain $TRAVIS_RUST_VERSION;
source ~/.cargo/env;
rustup component add rust-src;
fi
script:
# NOTE(TRAVIS_BRANCH) See the NOTE in the `install` section
# chmod: Travis can't cache files that are not readable by "others"
- if [ $TRAVIS_BRANCH != master ] || [ $TRAVIS_EVENT_TYPE = cron ]; then
if [[ $TRAVIS_OS_NAME = linux ]]; then
sh ci/run-docker.sh $TARGET || exit 1;
else
sh ci/run.sh || exit 1;
fi;
chmod -R a+r $HOME/.cargo;
fi
after_success:
- if [ $TARGET = x86_64-unknown-linux-gnu ] && [ $TRAVIS_BRANCH = master ] && [ $TRAVIS_EVENT_TYPE != cron ]; then
curl -LSfs https://japaric.github.io/trust/install.sh |
sh -s -- --git azerupi/mdbook --tag v0.0.14 --to .;
./mdbook build;
sh ga.sh;
mkdir ghp-import;
curl -Ls https://github.com/davisp/ghp-import/archive/master.tar.gz |
tar --strip-components 1 -C ghp-import -xz;
./ghp-import/ghp_import.py book;
git push -fq https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG.git gh-pages && echo OK;
fi
branches:
only:
- auto
- master
- try
notifications:
email:
on_success: never