From b899b1f8c6267625ff1fc34148b53a0856e67ecb Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 7 Feb 2016 11:14:55 +0000 Subject: [PATCH] add basic support for travis-ci.org integration Signed-off-by: Sergei Trofimovich --- .travis.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..7bd7e44c --- /dev/null +++ b/.travis.yml @@ -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 -- 2.40.0