language: C++
-before_install: ./contrib/utilities/setup_travis.sh
-
-os:
-- linux
-- mac
-
compiler:
-- clang
- gcc
-script: ./contrib/utilities/run_travis.sh $CI_TEST_SUITE $CI_BUILD_TYPE
+script: ./contrib/utilities/run_travis.sh
branches:
only:
- master
-
-env:
-# This is way too long. We should find a way to do this in little pieces...
-# - CI_TEST_SUITE=tests
-
-# These tests run ok, but they might be out of policy...
- - CI_TEST_SUITE=build CI_BUILD_TYPE=Debug
- - CI_TEST_SUITE=indent
-# - CI_TEST_SUITE=build CI_BUILD_TYPE=Release
-
-# These tests only compile and run "make tests"
-# - CI_TEST_SUITE=mini CI_BUILD_TYPE=Debug
-# - CI_TEST_SUITE=mini CI_BUILD_TYPE=Release
#!/bin/sh
-case $1 in
-build)
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
- echo "Running build tests."
- mkdir build_test
- cd build_test
- ctest -DCMAKE_BUILD_TYPE=$2 -V -j4 -S ../tests/run_buildtest.cmake
- else
- echo "Build test is only run when merging to master branch. Exiting."
- fi
- ;;
-indent)
- if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
+
+if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then
echo "Running indentation test on master merge."
- else
- echo "Running indentation test on Pull Request #${TRAVIS_PULL_REQUEST}"
- fi
- wget http://downloads.sourceforge.net/project/astyle/astyle/astyle%202.04/astyle_2.04_linux.tar.gz > /dev/null
- tar xvfz astyle_2.04_linux.tar.gz > /dev/null
- pushd astyle/build/gcc
- make -j4 > /dev/null
- popd
- export PATH=`pwd`/astyle/build/gcc/bin:$PATH
- ./contrib/utilities/indent
- git diff-files --quiet || (git diff && failing_missing_command)
- ;;
-*)
- echo "Unrecognized test type! [$1]"
- exit 1
-esac
+else
+ echo "Running indentation test on Pull Request #${TRAVIS_PULL_REQUEST}"
+fi
+wget http://downloads.sourceforge.net/project/astyle/astyle/astyle%202.04/astyle_2.04_linux.tar.gz > /dev/null
+tar xvfz astyle_2.04_linux.tar.gz > /dev/null
+cd astyle/build/gcc
+make -j4 > /dev/null
+cd ../../../
+export PATH=`pwd`/astyle/build/gcc/bin:$PATH
+./contrib/utilities/indent
+git diff
+git diff-files --quiet
+++ /dev/null
-#/bin/sh -f
-
-# things to do for travis-ci in the before_install section
-
-if ( test "`uname -s`" = "Darwin" )
-then
- #cmake v2.8.12 is installed on the Mac workers now
- #brew update
- #brew install cmake
- echo
-else
- #install a newer cmake since at this time Travis only has version 2.8.7
- sudo apt-get install build-essential
- echo "yes" | sudo add-apt-repository ppa:kalakris/cmake
- sudo apt-get update -qq
- sudo apt-get install cmake
-fi