Compile cmocka on travis

This commit is contained in:
Linus Probert 2018-05-11 19:47:42 +02:00
parent 3c1fbfaa2e
commit 3eccdcccb4
1 changed files with 4 additions and 1 deletions

View File

@ -12,6 +12,10 @@ env:
- CCACHE_CPP2=yes - CCACHE_CPP2=yes
before_install: before_install:
- git clone git://git.cryptomilk.org/projects/cmocka.git
- cd cmocka && mkdir build && cd build
- cmake .. && make -j2 && sudo make install
- cd ../..
- 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- - 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-
- sudo add-apt-repository -y ppa:zoogie/sdl2-snapshots - 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:george-edison55/cmake-3.x
@ -29,7 +33,6 @@ before_install:
install: install:
- sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev - sudo apt-get install -y libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev
- sudo apt-get install -y cmake cmake-data lua5.2 liblua5.2-dev - sudo apt-get install -y cmake cmake-data lua5.2 liblua5.2-dev
#- sudo apt-get install -y libcmocka0 libcmocka-dev
script: script:
- mkdir build - mkdir build