2017-12-05 08:39:04 +01:00
|
|
|
sudo: required
|
|
|
|
dist: trusty
|
|
|
|
language: c
|
2018-02-16 10:13:16 +01:00
|
|
|
cache: ccache
|
2017-12-05 08:39:04 +01:00
|
|
|
compiler:
|
|
|
|
- gcc
|
|
|
|
- clang
|
|
|
|
|
2018-05-05 21:48:34 +02:00
|
|
|
env:
|
2018-03-19 10:35:08 +01:00
|
|
|
global:
|
2018-03-19 11:00:22 +01:00
|
|
|
- secure: "XH9gOl7zX+QqtMhh1zAAcoNp0dIGpZOCKu1rs1tZSuOispXgSnRQ22hypyUHSqnhqh/q1pVoc3zJGk8qCpC8Qur2QcQnr0fP3z7tt7aF8EVqPIt81m+NIhsWQrJookvrKY9212qg0KuTOoPJ+FpNAIMWjtWT9w7DPrvgH2l+Ly6U5/vKGn49Z+rm6bwHdlDH0F1VxuiyXSv99h4Ik5FRB5jao2AWlszvvHOjRNbrZnpM9NTa+WuTOsGMNOxj2jbepu7oaZRuBZNRJDiEf7S84btdZM0wp2hOlhK8hqTCuzGkyV3RYqbYjt7qOucQpUWENtMmdz/E6/EA6t3palZaErOyf/ETy9UC6pw/myDzZfXi1iVwv1spff7pMTbrOa6rycS2M0Osgo0Ah2w5wPEYgT48363EQTN2nw9/5q1enjYJWdTFdACG+eAw5+LMfm3++dEhxht7DZJ/y89mae36b5CcMfWDxZS4CBYjhqDwFkRXgmcMIhqtXqF1zdheXd+zHw2zyYgrE0c/keOcyRvQ/DJzNSkRAPs11t4ETgKf295MzhPs/JXvHffY2Pfgwe09a3mX+fA9IgfL80rqw6d2tmtkoRApdvxT65OLITb+QPsbU4pE8SkgCDwZMvzenL7ChAXwt7vce7rXHJqmLAoaCvpvEor/c0Fbdluxk45hOwg="
|
2018-05-05 21:58:59 +02:00
|
|
|
- CCACHE_CPP2=yes
|
2018-03-19 10:35:08 +01:00
|
|
|
|
2017-12-05 08:39:04 +01:00
|
|
|
before_install:
|
2018-05-11 19:47:42 +02:00
|
|
|
- git clone git://git.cryptomilk.org/projects/cmocka.git
|
|
|
|
- cd cmocka && mkdir build && cd build
|
|
|
|
- cmake .. && make -j2 && sudo make install
|
|
|
|
- cd ../..
|
2018-03-19 10:35:08 +01:00
|
|
|
- echo -n | openssl s_client -connect https://scan.coverity.com:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' | sudo tee -a /etc/ssl/certs/ca-
|
2017-12-05 08:39:04 +01:00
|
|
|
- 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
|
2018-05-11 19:37:10 +02:00
|
|
|
- sudo apt-get install -y cmake cmake-data lua5.2 liblua5.2-dev
|
2017-12-05 08:39:04 +01:00
|
|
|
|
|
|
|
script:
|
|
|
|
- mkdir build
|
|
|
|
- cd build
|
2018-02-22 23:42:12 +01:00
|
|
|
- cmake --version
|
2018-03-19 11:00:22 +01:00
|
|
|
- cmake ..
|
2017-12-05 08:39:04 +01:00
|
|
|
- make
|
2018-05-11 19:09:34 +02:00
|
|
|
- ctest -V
|
2018-03-19 10:35:08 +01:00
|
|
|
|
|
|
|
addons:
|
|
|
|
coverity_scan:
|
|
|
|
project:
|
|
|
|
name: "LiquidityC/breakhack"
|
2018-03-19 11:00:22 +01:00
|
|
|
description: "Build submitted via Travis CI"
|
2018-03-19 10:35:08 +01:00
|
|
|
notification_email: linus.probert@gmail.com
|
2018-03-19 11:00:22 +01:00
|
|
|
build_command_prepend: "mkdir -p build; cd build; cmake .."
|
2018-03-19 10:35:08 +01:00
|
|
|
build_command: "make"
|
|
|
|
branch_pattern: coverity_scan
|