-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
42 lines (40 loc) · 1.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: cpp
os:
- linux
compiler:
- gcc
- clang
addons:
apt:
packages:
- g++-6
- clang-4.0
sources: &sources
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
before_install:
- sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty main universe multiverse"
- sudo apt-get update
- if [[ $CXX == 'clang++' ]]; then export CXX=clang++-4.0; fi
- if [[ $CXX == 'g++' ]]; then export CXX=g++-6; fi
install:
- sudo apt-get install --no-install-recommends libhdf5-7
- sudo apt-get install --no-install-recommends libpango-1.0-0 libpangocairo-1.0-0 libhdf5-dev
- sudo apt-get install --no-install-recommends -t trusty -y libboost1.55-all-dev libblitz0-dev libhdf5-serial-dev cmake
# libmpdata
- cd ..
- git clone --depth=1 git://github.com/igfuw/libmpdataxx.git
- cd libmpdataxx/libmpdata++
- mkdir build
- cd build
- cmake ..
- sudo cmake -P cmake_install.cmake
script:
- cd ../../../shallow-water-elliptic-drop/numerical
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Debug ../
- make
- cmake -DCMAKE_BUILD_TYPE=Release ../
- make
# TODO: unit tests / run the simulation