forked from 17cupsofcoffee/tetra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (42 loc) · 1.01 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
language: rust
cache:
- cargo
rust:
- 1.31.0
- beta
- nightly
matrix:
allow_failures:
- rust: nightly
fast_finish: true
addons:
apt:
packages:
- libasound2-dev
- libsdl2-dev
install:
- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then
brew update
&& brew install sdl2;
fi
- if [ "${TRAVIS_OS_NAME}" == "linux" ] && [ "${TRAVIS_RUST_VERSION}" == "1.31.0" ]; then
(test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
&& (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.1" mdbook)
&& cargo install-update -a;
fi
script:
- cargo test --verbose
- if [ "${TRAVIS_OS_NAME}" == "linux" ] && [ "${TRAVIS_RUST_VERSION}" == "1.31.0" ]; then
mdbook build;
fi
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: book
keep-history: false
fqdn: tetra.seventeencups.net
on:
branch: master
condition: $TRAVIS_OS_NAME == "linux"
condition: $TRAVIS_RUST_VERSION == "1.31.0"