61 lines
1.6 KiB
YAML
61 lines
1.6 KiB
YAML
sudo: false
|
|
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
|
|
matrix:
|
|
include:
|
|
- env: GCC_VERSION=4.8
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- *default_packages
|
|
- 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
|
|
- sh travis/git-info.sh
|
|
- sphinx-build -qW -j3 . docs/html
|
|
- python travis/pr-check-base.py
|
|
- python travis/lint.py
|
|
- python travis/authors-rst.py
|
|
- python travis/script-docs.py
|
|
- python travis/script-syntax.py --ext=lua --cmd="luac5.3 -p"
|
|
- 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 -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
|