aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml40
1 files changed, 37 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 37a91e9..e342fe8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,7 +1,41 @@
language: c
+
+os:
+ - linux
+ - osx
+
compiler:
- gcc
+ - clang
+
env:
- - CFLAGS=
- - CFLAGS="-Wextra -Wno-missing-field-initializers -Wno-unused-parameter"
-script: make local
+ - TARGET=
+ - TARGET=debug
+
+install:
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
+ brew update &&
+ brew install libtermkey &&
+ brew install lua &&
+ luarocks install lpeg;
+ fi
+
+script:
+ - id
+ - env
+ - locale
+ - tty || true
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
+ ./configure && make $TARGET;
+ else
+ make local && make clean && make $TARGET;
+ fi
+ - file vis
+ - if [ "$TRAVIS_OS_NAME" = "osx" ]; then
+ otool -L vis;
+ else
+ ldd vis;
+ fi
+ - size vis
+ - LD_LIBRARY_PATH="$(pwd)/dependency/install/usr/lib" ./vis -v
+ - LD_LIBRARY_PATH="$(pwd)/dependency/install/usr/lib" make test