1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-11-25 09:44:02 +00:00
Aquaria/.travis.yml

64 lines
1.7 KiB
YAML
Raw Permalink Normal View History

2017-01-14 11:06:06 +00:00
# http://docs.travis-ci.com/user/build-configuration/
language: cpp
sudo: false
2017-01-14 11:06:06 +00:00
compiler:
- gcc
- clang
2017-01-14 12:15:29 +00:00
os:
- linux
- osx
2017-01-14 12:12:07 +00:00
#matrix:
2017-01-14 11:06:06 +00:00
#branches:
# only:
# - master
addons:
apt:
packages:
- libopenal-dev
- libsdl2-dev
2017-01-14 11:30:22 +00:00
- libsdl-dev
2017-01-14 11:06:06 +00:00
2017-01-14 12:30:31 +00:00
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install sdl sdl2 openal-soft; fi
2017-01-14 12:30:31 +00:00
2017-01-14 11:06:06 +00:00
script:
# ALL THE BUILD COMMANDS HERE
- export CMAKE_PREFIX_PATH="$CMAKE_PREFIX_PATH;/usr/lib/x86_64-linux-gnu/"
- CMAKE_OPTIONS='-DCMAKE_PREFIX_PATH='"$CMAKE_PREFIX_PATH"' -DCMAKE_BUILD_TYPE=RelWithDebInfo -DAQUARIA_INTERNAL_FREETYPE=OFF -DAQUARIA_INTERNAL_LUA=OFF -DAQUARIA_INTERNAL_OGGVORBIS=OFF -DAQUARIA_INTERNAL_OPENAL=OFF -DAQUARIA_INTERNAL_PNG=OFF -DAQUARIA_INTERNAL_SDL=OFF -DAQUARIA_INTERNAL_TINYXML2=OFF -DAQUARIA_INTERNAL_ZLIB=OFF'
# Build SDL 2
- echo "----------------------------------------------BUILD SDL2----------------------------------------------"
2017-01-14 11:06:06 +00:00
- rm -rf cmake-build
- mkdir cmake-build
- cd cmake-build
- cmake $CMAKE_OPTIONS -DAQUARIA_USE_SDL2=ON ..
- make -j 2
# Build SDL 1.2
- echo "----------------------------------------------BUILD SDL 1.2----------------------------------------------"
- cd ..
- rm -rf cmake-build
- mkdir cmake-build
- cd cmake-build
- cmake $CMAKE_OPTIONS -DAQUARIA_USE_SDL2=OFF ..
2017-01-14 11:06:06 +00:00
- make -j 2
2017-01-14 13:11:38 +00:00
notifications:
irc:
channels:
- "irc.esper.net#bitblot"
skip_join: true
use_notice: true
on_success: change
2017-01-14 13:11:38 +00:00
template:
#- "[%{commit}: %{author}] %{message}"
#- "%{build_url}"
- "[%{repository_slug}#%{branch} @%{commit}] (%{author}): %{message}"
- "Diff: %{compare_url}"
- "Build: %{build_url}"