forked from amethyst/specs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
53 lines (47 loc) · 1.25 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
language: rust
rust:
- nightly
- stable
cache:
cargo: true
branches:
only:
- staging
- trying
- master
before_script:
- export PATH="$PATH:$HOME/.cargo/bin"
script:
- cargo build --features="common,serde,rudy" --verbose
- cargo test --features="common,serde,rudy" --verbose
- if [ "$TRAVIS_RUST_VERSION" == "nightly" ]; then
cargo build --all-features --verbose;
cargo test --all-features --verbose;
cargo bench --verbose --no-run --all-features;
fi
- cargo build --manifest-path ./specs-derive/Cargo.toml --verbose
- cargo test --manifest-path ./specs-derive/Cargo.toml --verbose
after_success: |
[ $TRAVIS_BRANCH = master ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
[ $TRAVIS_RUST_VERSION = stable ] &&
which mdbook || cargo install mdbook &&
cd book &&
mdbook build &&
cd .. &&
mkdir ../ghp &&
cp -r book/book/* ../ghp/ &&
echo "Checking out gh-pages" &&
git checkout --orphan gh-pages &&
rm -rf ./* &&
cp -r ../ghp/* ./ &&
git add -A &&
git commit --quiet -m "Update page" &&
git push -f https://${GH_TOKEN}@github.com/slide-rs/specs.git gh-pages
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/cdff2f522a8c4588a82a
on_success: always
on_failure: always
on_start: never