]> granicus.if.org Git - re2c/commitdiff
add basic support for travis-ci.org integration 136/head
authorSergei Trofimovich <siarheit@google.com>
Sun, 7 Feb 2016 11:14:55 +0000 (11:14 +0000)
committerSergei Trofimovich <siarheit@google.com>
Sun, 7 Feb 2016 13:43:32 +0000 (13:43 +0000)
Signed-off-by: Sergei Trofimovich <siarheit@google.com>
.travis.yml [new file with mode: 0644]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..7bd7e44
--- /dev/null
@@ -0,0 +1,31 @@
+language: cpp
+# faster container-based travis
+sudo: false
+
+compiler:
+ - gcc
+ - clang
+
+# preinstalled packages
+addons:
+  apt:
+    packages:
+    - bison
+    - python3-docutils
+
+# in-tree and out-of-tree builds
+env:
+ - BUILD_DIR=re2c       CONFIG_DIR=.
+ - BUILD_DIR=re2c-build CONFIG_DIR=../re2c/
+
+script:
+  - cd re2c && ./autogen.sh
+  - cd ..
+  - mkdir -p $BUILD_DIR && cd $BUILD_DIR
+  - |
+    $CONFIG_DIR/configure \
+        --prefix="$(pwd)"/re2c-install \
+        --enable-docs
+  - make -j$(nproc)
+  - ./run_tests.sh
+  - make -j$(nproc) install