git:
quiet: true
language: rust
cache:
cargo
rust:
- 1.33.0
matrix:
include:
- os: linux
dist: bionic
- os: osx
install:
- |
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 update
brew install sdl2
fi
- rustup toolchain install nightly
- sdl2-config --version
- sdl2-config --cflags
- sdl2-config --libs
- sdl2-config --static-libs
script:
- cargo build
- cargo +nightly test
- cargo clean
- cargo build --no-default-features --features="static_link"
- cargo +nightly test --no-default-features --features="static_link"
- cargo clean