Skip to content

Commit a9a0af1

Browse files
committed
Use container-based Travis by installing packages through the addon
1 parent 36a9802 commit a9a0af1

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.travis.yml

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
language: c
2+
sudo: false
23
compiler:
34
- gcc
45
- clang
56

7+
addons:
8+
apt:
9+
packages:
10+
- libc6-dbg
11+
- libc6-dev
12+
- libc6:i386
13+
- libc6-dev-i386
14+
- libc6-dbg:i386
15+
- gcc-multilib
16+
- valgrind
17+
618
env:
719
- CFLAGS="-Werror"
820
- PRE="valgrind --track-origins=yes --leak-check=full"
921
- TARGET="32bit" TARGET_VARS="32bit-vars" CFLAGS="-Werror"
1022
- TARGET="32bit" TARGET_VARS="32bit-vars" PRE="valgrind --track-origins=yes --leak-check=full"
1123

12-
install:
13-
- sudo apt-get update -qq
14-
- sudo apt-get install libc6-dbg libc6-dev libc6-i686:i386 libc6-dev-i386 libc6-dbg:i386 valgrind -y
15-
1624
script: make $TARGET CFLAGS="$CFLAGS" && make check PRE="$PRE" && make $TARGET_VARS hiredis-example

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,4 +215,4 @@ coverage: gcov
215215
noopt:
216216
$(MAKE) OPTIMIZATION=""
217217

218-
.PHONY: all test check clean dep install 32bit gprof gcov noopt
218+
.PHONY: all test check clean dep install 32bit 32bit-vars gprof gcov noopt

0 commit comments

Comments
 (0)