-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
21 lines (21 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
language: rust
rust:
- stable
- beta
- nightly
sudo: false
script:
- cargo build --verbose
# don't run doc tests because they don't run well for macros
- cargo test --verbose
env:
secure: "p8APQ2B/rHalaFEBamFGyYuIRIpIfiGKOkH206MsjS6oFlhLMRGYcGLOeM3W7sXiJQD7RReR5AFPMbD0Az8Lfnl7K7UnHTrK3Yxjb+eFizqeQqEuGaV3n1EyU7hONuDGaQMNdg0X3SJvDah0Fh1IIjMshHJYcHM9cCe1CSwEShwIitSKOSPkQ5MJ3RYwq114owv0NaTw1yAqKC78qqx2XmJLTt29/nri5oR7fumVobCGoGfGv3e4gSEXzCk4zKhFmWdVZuAcIKxSeNfgcf8n5tpHl+khhWbK3+71TBOh9wo+DlRrEay8WocH5doE6o7Bs/gEz7FWON8EqwZjQCgqXqIZ8pJpodniKxegUa/aOjkVF/+aoOmQZGiNXkhdx70bRJVKepLWEU++s502GAi+TM+mO+Myc+SPfdTjJMfoGuqmg2MvrH8zBrKEZDZjXPgQjrS+/Fhn15m0/Bv76otlkfcmj07UxR93MCmBhLon62+UJCVCLGkaKQ6fbPzvL+nt8Tj/s2VMERiy5JXB9ySezLeU0prEH8zOOq10XNmVT+/7k9T3ngl19t7iFWZwuphIKVYgoNkAjKMqZwcWtzN4J6MOVl1q/MZYSaDAAsmjrlPu86pbTSDpnjIP/G5fls1XljXnxaUeHExec+SrTAk2YdvhOThGJRhZOUWfQPHX8xQ="
after_success: |
[ $TRAVIS_RUST_VERSION = stable ] &&
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=gron/index.html>" > target/doc/index.html &&
pip install ghp-import --user &&
~/.local/bin/ghp-import -n target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages