imv/.travis.yml
Dmitrij D. Czarkoff 311c35e3b9 Enable tests
Once cmocka is built, it is cached, so that subsequent builds only need to
install it and update linker configuration.
2016-10-22 12:37:43 +02:00

42 lines
885 B
YAML

sudo: required
dist: trusty
language: c
compiler:
- clang
- gcc
cache:
directories:
- $HOME/cmocka
env:
- CFLAGS="-W -Wall -Wextra -Wpedantic -Wpointer-arith -Wuninitialized -Wstrict-prototypes -Wmissing-prototypes -Wunused -Wsign-compare -Wshadow -Werror"
script:
- make V=yes
- CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" make check
notifications:
email: false
addons:
apt:
packages:
- libfreeimage-dev
- libsdl2-ttf-dev
install:
# Note: travis concatinates lines belonging to the same item
- if [ ! -d $HOME/cmocka/cmocka-1.1.0 ];
then
curl "https://cmocka.org/files/1.1/cmocka-1.1.0.tar.xz" | tar xJf - -C $HOME/cmocka &&
cd $HOME/cmocka &&
env CFLAGS="-O2 -pipe" cmake cmocka-1.1.0 &&
env CFLAGS="-02 -pipe" make &&
cd -;
fi
- sudo make -C $HOME/cmocka install
- sudo ldconfig