From dff67702963172c568ba259b301819058e531620 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Tue, 18 Jul 2017 10:30:56 +0200 Subject: [PATCH] Add travis.yml --- .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..75aba98b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,31 @@ +language: c + +compiler: + - clang + - gcc + +os: + - linux + +# OSX builds do not work yet +# - osx + +osx_image: xcode9 + +dist: trusty + +before_install: + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gmp ; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install --with-clang --with-lld --with-python llvm ; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libgmp-dev libedit-dev ; fi + - export PATH=/usr/local/opt/llvm/bin:$PATH + - git submodule init + - git submodule update +env: + - INT=gmp + - INT=imath + - INT=imath-32 + +script: + - ./autogen.sh && ./configure --with-int=$INT --with-clang=system && make && make check