|
|
|
@ -3,13 +3,17 @@ language: cpp
|
|
|
|
|
cache:
|
|
|
|
|
pip: true
|
|
|
|
|
directories:
|
|
|
|
|
- $HOME/DF-travis
|
|
|
|
|
- $HOME/lua53
|
|
|
|
|
addons:
|
|
|
|
|
apt:
|
|
|
|
|
packages: &default_packages
|
|
|
|
|
- libsdl-image1.2-dev
|
|
|
|
|
- libsdl-ttf2.0-dev
|
|
|
|
|
- libsdl1.2-dev
|
|
|
|
|
- libxml-libxml-perl
|
|
|
|
|
- libxml-libxslt-perl
|
|
|
|
|
- zlib1g-dev:i386
|
|
|
|
|
- zlib1g-dev
|
|
|
|
|
matrix:
|
|
|
|
|
include:
|
|
|
|
|
- env: GCC_VERSION=4.8
|
|
|
|
@ -19,11 +23,15 @@ matrix:
|
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
|
packages:
|
|
|
|
|
- *default_packages
|
|
|
|
|
- gcc-4.8-multilib
|
|
|
|
|
- g++-4.8-multilib
|
|
|
|
|
- gcc-4.8
|
|
|
|
|
- g++-4.8
|
|
|
|
|
before_install:
|
|
|
|
|
- export DF_VERSION=$(sh travis/get-df-version.sh)
|
|
|
|
|
- export DF_FOLDER="$HOME/DF-travis/$DF_VERSION"
|
|
|
|
|
- pip install --user "sphinx==1.4" "requests[security]"
|
|
|
|
|
- sh travis/build-lua.sh
|
|
|
|
|
- sh travis/download-df.sh
|
|
|
|
|
- echo "export DFHACK_HEADLESS=1" >> "$HOME/.dfhackrc"
|
|
|
|
|
script:
|
|
|
|
|
- export PATH="$PATH:$HOME/lua53/bin"
|
|
|
|
|
- git tag tmp-travis-build
|
|
|
|
@ -37,12 +45,16 @@ script:
|
|
|
|
|
- python travis/script-syntax.py --ext=rb --cmd="ruby -c"
|
|
|
|
|
- mkdir build-travis
|
|
|
|
|
- cd build-travis
|
|
|
|
|
- cmake .. -DCMAKE_C_COMPILER=gcc-$GCC_VERSION -DCMAKE_CXX_COMPILER=g++-$GCC_VERSION -DBUILD_DOCS:BOOL=ON
|
|
|
|
|
- make -j3
|
|
|
|
|
- cmake .. -DCMAKE_C_COMPILER=gcc-$GCC_VERSION -DCMAKE_CXX_COMPILER=g++-$GCC_VERSION -DDFHACK_BUILD_ARCH=64 -DBUILD_DOCS:BOOL=ON -DCMAKE_INSTALL_PREFIX="$DF_FOLDER"
|
|
|
|
|
- make -j3 install
|
|
|
|
|
- mv "$DF_FOLDER"/dfhack.init-example "$DF_FOLDER"/dfhack.init
|
|
|
|
|
- cd ..
|
|
|
|
|
- cp travis/dfhack_travis.init "$DF_FOLDER"/
|
|
|
|
|
- python travis/run-tests.py "$DF_FOLDER"
|
|
|
|
|
notifications:
|
|
|
|
|
email: false
|
|
|
|
|
irc:
|
|
|
|
|
channels:
|
|
|
|
|
- "chat.freenode.net#dfhack"
|
|
|
|
|
on_success: change
|
|
|
|
|
on_failure: always
|
|
|
|
|
# irc:
|
|
|
|
|
# channels:
|
|
|
|
|
# - "chat.freenode.net#dfhack"
|
|
|
|
|
# on_success: change
|
|
|
|
|
# on_failure: always
|
|
|
|
|