Use container-based Travis by installing packages through the addon
This commit is contained in:
parent
36a9802c54
commit
a9a0af1d35
16
.travis.yml
16
.travis.yml
@ -1,16 +1,24 @@
|
|||||||
language: c
|
language: c
|
||||||
|
sudo: false
|
||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- libc6-dbg
|
||||||
|
- libc6-dev
|
||||||
|
- libc6:i386
|
||||||
|
- libc6-dev-i386
|
||||||
|
- libc6-dbg:i386
|
||||||
|
- gcc-multilib
|
||||||
|
- valgrind
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- CFLAGS="-Werror"
|
- CFLAGS="-Werror"
|
||||||
- PRE="valgrind --track-origins=yes --leak-check=full"
|
- PRE="valgrind --track-origins=yes --leak-check=full"
|
||||||
- TARGET="32bit" TARGET_VARS="32bit-vars" CFLAGS="-Werror"
|
- TARGET="32bit" TARGET_VARS="32bit-vars" CFLAGS="-Werror"
|
||||||
- TARGET="32bit" TARGET_VARS="32bit-vars" PRE="valgrind --track-origins=yes --leak-check=full"
|
- TARGET="32bit" TARGET_VARS="32bit-vars" PRE="valgrind --track-origins=yes --leak-check=full"
|
||||||
|
|
||||||
install:
|
|
||||||
- sudo apt-get update -qq
|
|
||||||
- sudo apt-get install libc6-dbg libc6-dev libc6-i686:i386 libc6-dev-i386 libc6-dbg:i386 valgrind -y
|
|
||||||
|
|
||||||
script: make $TARGET CFLAGS="$CFLAGS" && make check PRE="$PRE" && make $TARGET_VARS hiredis-example
|
script: make $TARGET CFLAGS="$CFLAGS" && make check PRE="$PRE" && make $TARGET_VARS hiredis-example
|
||||||
|
Loading…
Reference in New Issue
Block a user