ci: add .travis.yml based on daala's
authorTristan Matthews <tmatth@videolan.org>
Wed, 19 Jul 2017 02:12:10 +0000 (22:12 -0400)
committerTristan Matthews <tmatth@videolan.org>
Wed, 19 Jul 2017 02:12:10 +0000 (22:12 -0400)
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..5f6fd4f
--- /dev/null
@@ -0,0 +1,25 @@
+language: c
+
+compiler:
+  - gcc
+  - clang
+
+os:
+  - linux
+  - osx
+
+before_install:
+    - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update       ; fi
+    - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install check; fi
+    - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get -qq update; fi
+    - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y perl; fi
+
+env:
+  - CONFIG="--disable-examples --disable-doc"
+  - CONFIG="--disable-examples --disable-encode"
+  - CONFIG="--disable-examples --disable-asm"
+
+script:
+  - ./autogen.sh
+  - ./configure $CONFIG
+  - make check