-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
47 lines (40 loc) · 990 Bytes
/
.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
git:
quiet: true
language: rust
cache:
cargo
rust:
- 1.33.0
matrix:
include:
- os: linux
dist: bionic
- os: osx
install:
- rustup component add rustfmt
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
- (test -x $HOME/.cargo/bin/bindgen || cargo install bindgen)
- cargo install-update -a
- |
if [[ $TRAVIS_OS_NAME == "linux" ]]
then
# https://packages.ubuntu.com/bionic/libsdl2-dev
sudo apt-get -qq install libsdl2-dev
else
# https://formulae.brew.sh/formula/sdl2#default
brew install sdl2
fi
# Run these to confirm that the SDL2 installation is working
- sdl2-config --version
- sdl2-config --cflags
- sdl2-config --libs
- sdl2-config --static-libs
script:
# dynamic
- cargo build
- cargo test
- cargo clean
# static
- cargo build --no-default-features --features="link_static"
- cargo test --no-default-features --features="link_static"
- cargo clean