grafX2/.travis.yml
Thomas Bernard 1147a8f49f build Win32 installer with gitlab-ci
call "make ziprelease" if needed
2018-05-13 23:33:42 +02:00

45 lines
832 B
YAML

language: c
os:
- linux
- osx
addons:
apt:
packages:
- gcc-mingw-w64-i686
- mingw-w64-tools
- libsdl1.2-dev
- libsdl-image1.2-dev
- libsdl-ttf2.0-dev
- liblua5.2-dev
- nsis
sudo: false
env:
- ''
- 'WIN32CROSS=1'
matrix:
exclude:
- os: osx
env: 'WIN32CROSS=1'
compiler:
- gcc
before_install:
- 'if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update > /dev/null ; fi'
- 'if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install sdl sdl_image sdl_ttf lua ; fi'
# to avoid errors with git rev-list --count 1af8c74f53110e349d8f0d19b14599281913f71f..
install:
- 'git fetch --unshallow'
script:
- 'cd $TRAVIS_BUILD_DIR'
- 'if [ "$WIN32CROSS" = "1" ] ; then make 3rdparty ; fi'
- 'if [ "$TRAVIS_OS_NAME" = "osx" ] ; then make ; else make -j3 ; fi'
- 'make ziprelease'