Add Travis configuration file
authorHelmut Eller <eller.helmut@gmail.com>
Fri, 16 Dec 2016 21:10:25 +0000 (22:10 +0100)
committerHelmut Eller <eller.helmut@gmail.com>
Fri, 16 Dec 2016 21:10:25 +0000 (22:10 +0100)
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..c349606
--- /dev/null
@@ -0,0 +1,21 @@
+os:
+  - linux
+  - osx
+env:
+  - WIDTHOPT=-m64
+  - WIDTHOPT=-m32
+language: c
+compiler:
+  - gcc
+  - clang
+matrix:
+  exclude:
+    - os: osx
+      compiler: gcc # gcc seems to be an symlink to clang
+sudo: true
+before_install: |
+  if [ "$TRAVIS_OS_NAME" = linux -a "$WIDTHOPT" = -m32 ]; then
+     sudo apt-get install -y gcc-multilib
+  fi
+script:  # CC is exported by travis
+  - make WIDTHOPT=$WIDTHOPT -C build/unix/ test