dfhack/.travis.yml

61 lines
1.6 KiB
YAML

sudo: false
2016-01-09 17:34:57 -07:00
language: cpp
2017-06-22 09:06:37 -06:00
cache:
pip: true
directories:
2018-02-03 21:01:15 -07:00
- $HOME/DF-travis
2017-06-22 09:06:37 -06:00
- $HOME/lua53
addons:
apt:
2016-01-09 17:34:57 -07:00
packages: &default_packages
2018-02-03 21:26:43 -07:00
- libsdl-image1.2-dev
- libsdl-ttf2.0-dev
- libsdl1.2-dev
2016-01-09 17:34:57 -07:00
- libxml-libxml-perl
- libxml-libxslt-perl
2018-02-03 21:26:43 -07:00
- zlib1g-dev
2016-01-09 17:34:57 -07:00
matrix:
include:
- env: GCC_VERSION=4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- *default_packages
2018-02-03 21:26:43 -07:00
- gcc-4.8
- g++-4.8
2015-02-23 16:44:36 -07:00
before_install:
2018-02-03 21:01:15 -07:00
- export DF_VERSION=$(sh travis/get-df-version.sh)
- export DF_FOLDER="$HOME/DF-travis/$DF_VERSION"
2017-06-22 09:06:37 -06:00
- pip install --user "sphinx==1.4" "requests[security]"
- sh travis/build-lua.sh
2018-02-03 21:01:15 -07:00
- sh travis/download-df.sh
2018-02-03 21:59:01 -07:00
- echo "export DFHACK_HEADLESS=1" >> "$HOME/.dfhackrc"
2015-02-14 18:10:48 -07:00
script:
2017-06-22 09:06:37 -06:00
- export PATH="$PATH:$HOME/lua53/bin"
2015-08-31 09:25:44 -06:00
- git tag tmp-travis-build
2015-10-30 21:30:06 -06:00
- sh travis/git-info.sh
2016-04-12 18:09:27 -06:00
- sphinx-build -qW -j3 . docs/html
- python travis/pr-check-base.py
2015-02-23 16:44:36 -07:00
- python travis/lint.py
2015-11-26 11:17:18 -07:00
- python travis/authors-rst.py
2016-07-26 20:51:42 -06:00
- 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"
2015-08-31 09:25:44 -06:00
- mkdir build-travis
- cd build-travis
2018-02-03 21:26:43 -07:00
- 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"
2018-02-03 21:01:15 -07:00
- make -j3 install
2018-02-03 23:48:09 -07:00
- mv "$DF_FOLDER"/dfhack.init-example "$DF_FOLDER"/dfhack.init
2018-02-04 14:00:53 -07:00
- cd ..
- cp travis/dfhack_travis.init "$DF_FOLDER"/
- python travis/run-tests.py "$DF_FOLDER"
2016-11-22 15:31:36 -07:00
notifications:
email: false
2018-02-05 17:22:07 -07:00
irc:
channels:
- "chat.freenode.net#dfhack"
on_success: change
on_failure: always