mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-10-31 19:36:16 +00:00
39 lines
796 B
YAML
39 lines
796 B
YAML
language: cpp
|
|
sudo: required
|
|
addons:
|
|
apt:
|
|
packages:
|
|
- libsdl-dev
|
|
- libsdl-mixer1.2-dev
|
|
- libsdl-gfx1.2-dev
|
|
- libsdl-ttf2.0-dev
|
|
- libglew-dev
|
|
os:
|
|
- linux
|
|
- osx
|
|
compiler:
|
|
- gcc
|
|
- clang
|
|
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
|
|
script:
|
|
- |-
|
|
# Build hyperrogue.
|
|
autoreconf -vi
|
|
./configure CXXFLAGS="-Wall -Werror -Wno-error=unused-result"
|
|
make
|
|
- |-
|
|
# Test hyperrogue.
|
|
./hyperrogue --help
|
|
- |-
|
|
# Test "make dist". ("make distcheck" is expected to fail.)
|
|
make dist
|
|
- |-
|
|
# Test "sudo make install".
|
|
sudo make install
|