Start working on Travis-CI integration

This commit is contained in:
Dirk Ziegelmeier 2018-10-12 20:09:22 +02:00
parent 437e0a6756
commit a3a4103d66
2 changed files with 50 additions and 0 deletions

35
.travis.yml Normal file
View File

@ -0,0 +1,35 @@
language: c
os: linux
sudo: false
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- check
- libsubunit-dev
- gcc-5
env: COMPILER=gcc-5
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-precise-3.8
packages:
- check
- libsubunit-dev
- clang-3.8
env: COMPILER=clang-3.8
addons:
apt:
packages:
- check
- libsubunit-dev
script: ./test.sh

15
test.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
if [ "$COMPILER" ];
then
export CC=$COMPILER
fi
cd contrib/ports/unix/check
#build and run unit tests
make clean all
ERR=$?
if [ $ERR != 0 ]; then
echo "unittests build failed"
exit 33
fi
make check