diff options
Diffstat (limited to '.travis/build-and-test.sh')
-rwxr-xr-x | .travis/build-and-test.sh | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/.travis/build-and-test.sh b/.travis/build-and-test.sh new file mode 100755 index 000000000..096dde64f --- /dev/null +++ b/.travis/build-and-test.sh @@ -0,0 +1,49 @@ +#! /bin/bash + +set -e + +source .travis/common.sh + +########################################################################## + +echo +echo 'Configuring...' && echo -en 'travis_fold:start:script.configure\\r' +echo + +if [ "$CONFIG" = "gcc" ]; then + echo "Configuring for gcc." + make config-gcc +elif [ "$CONFIG" = "clang" ]; then + echo "Configuring for clang." + make config-clang +fi + +echo +echo -en 'travis_fold:end:script.configure\\r' +echo + +########################################################################## + +echo +echo 'Building...' && echo -en 'travis_fold:start:script.build\\r' +echo + +make + +echo +echo -en 'travis_fold:end:script.build\\r' +echo + +########################################################################## + +echo +echo 'Testing...' && echo -en 'travis_fold:start:script.test\\r' +echo + +make test + +echo +echo -en 'travis_fold:end:script.test\\r' +echo + +########################################################################## |