Skip to content

Commit

Permalink
adding travis
Browse files Browse the repository at this point in the history
  • Loading branch information
jvarley committed May 18, 2016
1 parent 50ec2ed commit 654ff64
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
language: cpp

sudo: required

dist: trusty

matrix:
include:
- os: linux
compiler: gcc
env: BUILD_TYPE=Debug COMPILER=GCC
- os: linux
compiler: gcc
env: BUILD_TYPE=Release COMPILER=GCC

install:
- 'ci/install.sh'

script:
- 'ci/script.sh'

after_failure:
- cat Testing/Temporary/LastTest.log
- cat Testing/Temporary/LastTestsFailed.log
3 changes: 3 additions & 0 deletions ci/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$COMPILER" = "CLANG" ]; then exit; fi

if [ "$TRAVIS_OS_NAME" = "linux" ]; then 'ci/install_linux.sh' ; fi
Empty file added ci/install.sh~
Empty file.
13 changes: 13 additions & 0 deletions ci/install_linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
APT='
cmake
libqt4-dev
libqt4-opengl-dev
libqt4-sql-psql
libcoin80-dev
libsoqt4-dev
libblas-dev
liblapack-dev
libqhull-dev
'

sudo apt-get -qq --yes --force-yes install $APT
5 changes: 5 additions & 0 deletions ci/script.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$COMPILER" = "CLANG" ]; then exit; fi

mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE
make -j4

0 comments on commit 654ff64

Please sign in to comment.