Merge pull request #18 from ellerh/travis-script
authorPhil Burk <philburk@mobileer.com>
Sat, 17 Dec 2016 23:18:33 +0000 (15:18 -0800)
committerGitHub <noreply@github.com>
Sat, 17 Dec 2016 23:18:33 +0000 (15:18 -0800)
Add Travis configuration file

.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