From 3262944491a41094275c1fd983a0d668acef5418 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 | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..18a1d745 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,29 @@ +language: c + +compiler: + - clang + - gcc + +os: + - linux + - 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 --HEAD 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