2018-06-25 20:28:41 +00:00
|
|
|
language: cpp
|
|
|
|
sudo: required
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- libsdl-dev
|
|
|
|
- libsdl-mixer1.2-dev
|
|
|
|
- libsdl-gfx1.2-dev
|
|
|
|
- libsdl-ttf2.0-dev
|
|
|
|
- libglew-dev
|
2018-07-01 00:57:28 +00:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
2018-06-25 20:28:41 +00:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
2018-07-01 00:57:28 +00:00
|
|
|
before_install:
|
|
|
|
- |-
|
|
|
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
|
|
brew update && brew install sdl sdl_gfx sdl_mixer sdl_ttf
|
|
|
|
# work around https://stackoverflow.com/questions/51034399/ for now
|
|
|
|
(cd /usr/local/include && ln -sf SDL/SDL.h)
|
|
|
|
fi
|
2018-06-25 20:28:41 +00:00
|
|
|
script:
|
2018-07-01 00:57:28 +00:00
|
|
|
- |-
|
|
|
|
# Build hyperrogue.
|
|
|
|
autoreconf -vi
|
2018-07-07 19:04:59 +00:00
|
|
|
./configure CXXFLAGS="-Wall -Werror -Wno-error=unused-result"
|
2018-07-01 00:57:28 +00:00
|
|
|
make
|
|
|
|
- |-
|
|
|
|
# Test hyperrogue.
|
|
|
|
./hyperrogue --help
|
|
|
|
- |-
|
|
|
|
# Test "make dist". ("make distcheck" is expected to fail.)
|
|
|
|
make dist
|
|
|
|
- |-
|
|
|
|
# Test "sudo make install".
|
|
|
|
sudo make install
|