-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
95 lines (89 loc) · 2 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
language: rust
rust:
- nightly
cache:
- apt
- homebrew
matrix:
include:
- env: ARCH=i686-unknown-linux-gnu
os: linux
- env: ARCH=x86_64-unknown-linux-gnu
os: linux
- env: ARCH=i686-pc-windows-msvc
os: windows
- env: ARCH=x86_64-pc-windows-msvc
os: windows
- env: ARCH=x86_64-apple-darwin
os: osx
- env: ARCH=i686-apple-darwin
os: osx
- env: ARCH=wasm
os: linux
#fermium doesn't fully work on 32bit targets at the moment
allow_failures:
- env: ARCH=i686-apple-darwin
os: osx
- env: ARCH=i686-unknown-linux-gnu
os: linux
- env: ARCH=i686-pc-windows-msvc
os: windows
addons:
apt:
packages:
- build-essential
- libgtk-3-dev
- libsdl2-dev
- libsdl2-image-dev
- libsdl2-mixer-dev
- libsdl2-ttf-dev
- libegl1-mesa-dev
- libgles2-mesa-dev
homebrew:
update: true
packages:
- sdl2
- sdl2-image
- sdl2-mixer
- sdl2-ttf
script:
- rustup default nightly
- rustup update
- |
if [ $ARCH == "x86_64-pc-windows-msvc" ]; then
rustup default nightly-msvc;
rustup set default-host x86_64-pc-windows-msvc;
echo "ok";
fi
- |
if [ $ARCH == "wasm" ]; then
export DO_DEPLOY="yes";
else
rustup target add $ARCH;
cargo build --target=$ARCH;
cargo test --target=$ARCH;
cargo test --target=$ARCH --lib rusty-boy-advance;
cargo bench --target=$ARCH;
fi
deploy:
cleanup: false
skip_cleanup: true
provider: pages
github-token: $GITHUB_TOKEN
keep-history: false
local-dir: public
on:
branch: master
condition: $DO_DEPLOY = yes
#https://github.com/koute/cargo-web/issues/227
before_deploy:
- ./.ci/dl-cargo-web.sh
- cd rusty-boy-advance-quicksilver
- cargo web deploy -p rusty-boy-advance-quicksilver --release
- cargo doc --document-private-items --no-deps
- cd ..
- mkdir public
- cp -r target/doc/ public/
- cp -r target/deploy/. public/
- pwd
- ls