diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..f2a4ccc5 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,15 @@ +language: c +sudo: required + +matrix: + include: + - os: linux + compiler: clang + dist: xenial + - os: linux + compiler: gcc + dist: xenial + +script: + - ./travis/build.sh + - ./travis/test.sh diff --git a/travis/build.sh b/travis/build.sh new file mode 100755 index 00000000..e6be5bf1 --- /dev/null +++ b/travis/build.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +set -e + +cd $(dirname $0)/.. +make diff --git a/travis/test.sh b/travis/test.sh new file mode 100755 index 00000000..ee9ddf9e --- /dev/null +++ b/travis/test.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +set -ex + +cd $(dirname $0)/.. + +df . +uname -a + +case "$(uname)" in +Darwin) + sw_vers -productVersion + mount + ;; +FreeBSD) + mount -p + ;; +Linux) + for release_file in /etc/lsb-release /etc/os-release; do + echo "$release_file.. ->" + cat $release_file + done + mount + ;; +esac + +sudo prove -rv .