From 71e7a709d04c6258db2709819707f7e31382c9b8 Mon Sep 17 00:00:00 2001 From: Martins Mozeiko Date: Thu, 26 Oct 2017 11:27:23 -0700 Subject: [PATCH] add Travis CI --- .travis.yml | 40 ++++++++++++++++++++++++++++++++++++++++ makefile | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 .travis.yml 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