breakhack/.travis.yml

66 lines
3.3 KiB
YAML
Raw Normal View History

2017-12-05 08:39:04 +01:00
sudo: required
2018-05-13 16:46:14 +02:00
os:
- linux
- osx
2017-12-05 08:39:04 +01:00
dist: trusty
language: c
cache: ccache
2017-12-05 08:39:04 +01:00
compiler:
- gcc
- clang
2018-05-05 21:48:34 +02:00
env:
global:
- 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
2017-12-05 08:39:04 +01:00
before_install:
2018-05-13 16:46:14 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cp build/osx/Brewfile . ; fi
2017-12-05 08:39:04 +01:00
2018-05-13 16:46:14 +02:00
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 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- ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone git://git.cryptomilk.org/projects/cmocka.git ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update -qq ; fi
2017-12-05 08:39:04 +01:00
install:
2018-05-13 16:46:14 +02:00
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew bundle; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd cmocka && mkdir build && cd build ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cmake .. && make -j2 && sudo make install ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd ../.. ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y lua5.2 liblua5.2-dev ; fi
2017-12-05 08:39:04 +01:00
script:
2018-05-13 16:46:14 +02:00
- mkdir _build
- cd _build
2018-02-22 23:42:12 +01:00
- cmake --version
- cmake ..
2017-12-05 08:39:04 +01:00
- make
- ctest -V
addons:
coverity_scan:
project:
name: "LiquidityC/breakhack"
description: "Build submitted via Travis CI"
notification_email: linus.probert@gmail.com
2018-05-15 14:12:38 +02:00
build_command_prepend: "mkdir -p _build; cd _build; cmake .."
build_command: "make"
branch_pattern: coverity_scan
2018-05-15 14:12:38 +02:00
before_deploy:
2018-05-15 14:21:54 +02:00
- mkdir package
2018-05-15 14:12:38 +02:00
- cmake package
deploy:
provider: releases
api_key:
secure: "KeT/BC2ck2eqs1q4keoLe/Y9KIk+AR5shiAnA2oMQzbLWoZmxUx3Kol7rLPJ0Hfgb+aCpSpTM1njX6Kw7Nl8j4NrOkgadb3ZmfqRthFazzb93reRt+0dZZcurilHpWtMeteaZLWGWaG0j09xnI3CPPjmth6BB+/roGRsQyo1QKk0pZYsQD6ZKfGAUR1576dFyRzvsIrnfLd7rZVSNZ8HtPwN2rmSLD/cGxMCf+IafcBInPyv9p6bCoVLIDFnDdCr+kwBuSlGudT15EtDx3d9Abab3ZIS3NUpnXr2s0BmknCpyb59YsG9V0YXIQsIkwioEWiJskcAznXT/yB4XqDCq693b+0sxldsUVPw2JkMU+40V5ay2itH3SeP/LyXVFUARdWB+nn6avaFRVaZ1nHYP95CrBXC8JGB1bd7ejeEm9+cOvBOgvsZp71uRJ2OdEXN5Z3i373cyvWXPFHVbQRJS5l1dRBJR0sozYcPe8BMQ4Pv+xahFWIeyDAErUwJSiOf1Uv/x6PNxJaZTTZKCYGSRo6Ywb15bw4YnlOzDXllBxNg3IsJjJes1qFBJGR1eRMq/U9Ne+eHLk7cn2r7Fa77DtFsbONTDHftXDFHk46LDLF+HlL2wHIoTJVzLl/tXyBm3MJuaghGEvvZSwalWS3UnvMTQOBlDG0qC/ww6mlkv+Y="
file:
- "package/breakhack*.tar.gz"
- "package/breakhack*.tar.Z"
skip_cleanup: true
on:
tags: true