From ae628f626d47afebb243ccb2ec966c4dba8547ad Mon Sep 17 00:00:00 2001 From: Hans Johnson Date: Wed, 1 Mar 2017 17:28:10 -0600 Subject: [PATCH] ENH: Add Travis pull request builds. This is a very limited build environment only testing DWIConvert. --- .travis.yml | 56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..69c076a19 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,56 @@ +# use containers +sudo: false + +os: + - linux + - osx + +language: cpp + +cache: ccache + +compiler: + - clang + - gcc + +addons: + apt: + sources: + - george-edison55-precise-backports + packages: + - cmake + - cmake-data + +before_install: + - if [ "$TRAVIS_OS_NAME" == "osx" ]; then echo "need cmake 3.2"; fi + - if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update && brew install ccache; fi + - if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi + - mkdir bt-bld + - cd bt-bld + +script: + # Minimize build time for testing + - cmake \ + -DCMAKE_CXX_STANDARD:STRING=11 \ + -DUSE_ANTS=BOOL=OFF \ + -DUSE_BRAINSABC:BOOL=OFF \ + -DUSE_BRAINSDWICleanup:BOOL=OFF \ + -DUSE_BRAINSInitializedControlPoints:BOOL=OFF \ + -DUSE_BRAINSLabelStats:BOOL=OFF \ + -DUSE_BRAINSLandmarkInitializer:BOOL=OFF \ + -DUSE_BRAINSROIAuto:BOOL=OFF \ + -DUSE_BRAINSRefacer:BOOL=OFF \ + -DUSE_BRAINSResample:BOOL=OFF \ + -DUSE_BRAINSSnapShotWriter:BOOL=OFF \ + -DUSE_BRAINSStripRotation:BOOL=OFF \ + -DUSE_BRAINSTransformConvert:BOOL=OFF \ + -DUSE_ConvertBetweenFileFormats:BOOL=OFF \ + -DUSE_ImageCalculator:BOOL=OFF \ + -DUSE_ReferenceAtlas:BOOL=OFF \ + ./.. \ + && make -j 2 && cd BRAINSTools-build/ && make test + +notifications: + email: + recipients: + - hans-johnson@uiowa.edu