]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added .travis.yml
authorLuca Heltai <luca.heltai@gmail.com>
Tue, 5 Aug 2014 12:24:11 +0000 (14:24 +0200)
committerLuca Heltai <luca.heltai@sissa.it>
Thu, 7 Aug 2014 08:14:03 +0000 (10:14 +0200)
.travis.yml [new file with mode: 0644]
README.md
contrib/utilities/run_travis.sh [new file with mode: 0755]
contrib/utilities/setup_travis.sh [new file with mode: 0755]

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..08b449b
--- /dev/null
@@ -0,0 +1,21 @@
+language: C++
+
+before_install: ./contrib/utilities/setup_travis.sh
+
+compiler: 
+- clang
+- gcc
+
+script: ./contrib/utilities/run_travis.sh $CI_TEST_SUITE $CI_BUILD_TYPE
+
+branches:
+  only:
+    - master
+
+env:
+  - CI_TEST_SUITE=mini CI_BUILD_TYPE=Debug
+  - CI_TEST_SUITE=mini CI_BUILD_TYPE=Release
+  - CI_TEST_SUITE=build CI_BUILD_TYPE=Debug
+  - CI_TEST_SUITE=build CI_BUILD_TYPE=Release
+# This is way too long. We should find a way to do this in little pieces...
+#  - CI_TEST_SUITE=tests 
index 1b29ac56f8d5046dc45f789e841b0e6eaec80bbb..a49218748cb2cf19c35a8747e5b887e2e8f08696 100644 (file)
--- a/README.md
+++ b/README.md
@@ -37,3 +37,8 @@ Further information:
 
 For further information have a look at ./doc/index.html or at
 http://www.dealii.org.
+
+Continuous Integration Status:
+------------------------
+
+[![Build Status](https://travis-ci.org/dealii/dealii.png)](https://travis-ci.org/dealii/dealii)
diff --git a/contrib/utilities/run_travis.sh b/contrib/utilities/run_travis.sh
new file mode 100755 (executable)
index 0000000..63ac0ee
--- /dev/null
@@ -0,0 +1,23 @@
+#!/bin/sh
+case $1 in
+mini)
+    echo "Building and running mini tests in $2 mode."
+    mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=$2 ../ && make -j4 && make tests
+    ;;
+build)
+    echo "Running build tests."
+    mkdir build_test 
+    cd build_test
+    ctest -DCMAKE_BUILD_TYPE=$2 -V -j4 -S ../tests/run_buildtest.cmake
+    ;;
+tests)
+    echo "Running full testsuite."
+    mkdir full_tests
+    cd full_tests
+    ctest -DCMAKE_BUILD_TYPE=$2 -V -j4 -S ../tests/run_testsuite.cmake
+    ;;
+*)
+    echo "Unrecognized test type! [$1]"
+    exit 1
+esac
+
diff --git a/contrib/utilities/setup_travis.sh b/contrib/utilities/setup_travis.sh
new file mode 100755 (executable)
index 0000000..ec39454
--- /dev/null
@@ -0,0 +1,17 @@
+#/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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.