-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
24 lines (24 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
22
23
24
language: rust
cache: cargo
rust:
- stable
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
script: |
cd vk_generator
cargo build --verbose
cargo test --verbose
env:
global:
secure: a1+NpXhTInodgTF6GWl6+a4Z0QeuIntu4Dz4bO+uPdZSymQYnJ4toHRvuupTGWT2XTIrQxCoO/oQdSVNWWZSsaMIrqeAeKLhAXRgM/SIbNhCxTtQsTRrzk4dz0dw2bWAYd9OARGK89xjOSSF7edTD1maj6NShS/bM82NG14LTIylY8QMUOtuR3SPP2lBeXByKkJBZ/vIw5LXXHzyIh05I5gVh7+R7/27p8RROVS6heh8+tkAfSsHf202yyyqz+Ikbo/0ZQPbbBB+bB4/J4abeRtJIKwQTt1IPir7OKuuB6XaYYl71xNDP/61nW0T8ms34cNPFD/mOQPa+7nKTKH6CbqYDIoNzVZ56RRdxhjbDmt9y7y0XPwGqdAq0p1xDkGqTaPGRJhlHgqJpGkmQX/CV9N0L5crqHrsq/5zPuDbg/evCH7TXngNLI0yRfTbAPzmGUXe+Po5rfyST5KqncdbPZxLFJ3JLVwTRz0VnisVCQY2VyLPQkfazM9qw84bYwpzKhwCJUzwGkQ2F4KKlCBqoIc2QlRkEfb8MHZWIFnK4vVYTSjyoGVKhdwn92wq6N1gdMeFENxish6A1zKNOvyVUET05FTXjW/MGMXr9z38WOS0UO6xqGB0ciyBqz4GnCx1LL8sDxKvgthlPHNqGCfZ06OtWJSsCjjDqYZEsm00Jg8=
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo "<meta http-equiv=refresh content=0;url=`echo $TRAVIS_REPO_SLUG | cut -d '/' -f 2`/index.html>" > target/doc/index.html &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages