breakhack/.travis.yml

41 lines
1.2 KiB
YAML
Raw Normal View History

2017-12-05 08:39:04 +01:00
sudo: required
dist: trusty
language: c
cache: ccache
2017-12-05 08:39:04 +01:00
compiler:
- gcc
- clang
before_install:
- sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots
- sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
- sudo add-apt-repository -y ppa:h-rayflood/llvm
#g++4.9
- if [ "$CXX" = "g++" ]; then sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; fi
#clang 4.0
- if [ "$CXX" == "clang++" ]; then wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -; fi
- if [ "$CXX" == "clang++" ]; then sudo add-apt-repository -y "deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main"; fi
- sudo apt-get update -qq
install:
- sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
2017-12-05 12:40:37 +01:00
- sudo apt-get install -y cmake cmake-data check lua5.2 liblua5.2-dev
2017-12-05 08:39:04 +01:00
#g++6
- if [ "$CXX" = "g++" ]; then sudo apt-get install -y g++-6; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-6" CC="gcc-6"; fi
#clang 4.0
- if [ "$CXX" == "clang++" ]; then sudo apt-get install -y clang-4.0; fi
- if [ "$CXX" == "clang++" ]; then export CXX="clang++-4.0"; fi
script:
- mkdir build
- cd build
2017-12-05 08:46:10 +01:00
- cmake ..
2017-12-05 08:39:04 +01:00
- make
- make test