-
Notifications
You must be signed in to change notification settings - Fork 45
/
.travis.yml
47 lines (37 loc) · 1.18 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
language: rust
os:
- linux
- osx
rust:
- nightly
- stable
matrix:
allow_failures:
- os: linux
rust: nightly
- os: osx
rust: nightly
before_install:
- '[ "$TRAVIS_OS_NAME" = linux ] && sudo apt-get update -qq || brew update'
install:
- '[ "$TRAVIS_OS_NAME" = linux ] && sudo apt-get install -y libsdl2-dev libegl1-mesa-dev libgles2-mesa-dev || brew install sdl2'
script:
- cargo build --verbose
- cargo test --verbose
- cargo test --features "rustc-serialize serde" --verbose
- cargo test --release
after_success: ! '[ $TRAVIS_BRANCH = master ] &&
[ "$TRAVIS_OS_NAME" = linux ] &&
[ $TRAVIS_PULL_REQUEST = false ] &&
cargo doc &&
echo ''<meta http-equiv=refresh content="0;url=tcod/index.html">'' > target/doc/index.html
&&
git config --global user.email "[email protected]" &&
git config --global user.name "travis-ci" &&
sudo pip install ghp-import &&
ghp-import -n target/doc &&
git push -fq https://${TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git gh-pages
'
env:
global:
- secure: h21kqC5s6iVs4p5n9KFZ5ZTWtPF8nGVFpaPP6t/1Sg+xMaHMDyr/sBYI1gsNGTXrVsiP2Zs6cRTBEbX12PVL6MXFgKpdhKG1+lBCMk6HxU8/W2UHCh6Y38+W4Ybyv5fuoWqkUOX3yODNkRZWrqNhdm8lCdE2uGczkIKPi7hDYMM=