diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b8be443 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,40 @@ +git: + depth: 1 + +language: c + +matrix: + + include: + + - os: linux + dist: trusty + sudo: false + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - gcc-7 + env: + - PKGI_CC=gcc-7 + + - os: linux + dist: trusty + sudo: false + addons: + apt: + sources: + - llvm-toolchain-trusty-5.0 + packages: + - clang-5.0 + env: + - PKGI_CC=clang-5.0 + + - os: osx + osx_image: xcode9.1 + env: + - PKGI_CC=clang + +script: + - CC=${PKGI_CC} make diff --git a/makefile b/makefile index 8c5a672..43d9afb 100644 --- a/makefile +++ b/makefile @@ -10,7 +10,7 @@ SRC=${wildcard pkg2zip*.c} puff.c OBJ=${SRC:.c=.o} DEP=${SRC:.c=.d} -CFLAGS=-pipe -fvisibility=hidden -Wall -Wextra -DNDEBUG -O2 +CFLAGS=-pipe -fvisibility=hidden -Wall -Wextra -Werror -DNDEBUG -O2 LDFLAGS=-s .PHONY: all clean