-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
45 lines (38 loc) · 1.77 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
43
44
45
language: cpp
os:
- linux
compiler:
- gcc
before_install:
- sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ trusty main universe multiverse"
- sudo apt-get update
install:
- if [[ $CXX == 'clang++' ]]; then sudo apt-get install --no-install-recommends clang; fi
- if [[ $CXX == 'g++' ]]; then sudo apt-get install --no-install-recommends g++ ; fi
- sudo apt-get install --no-install-recommends libnetcdfc7
- sudo apt-get install --no-install-recommends gfortran libblitz0-dev cmake libboost-python-dev libthrust-dev libnetcdf-dev python-numpy python-cffi python-pytest
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then git clone --depth=1 https://github.com/boostorg/odeint.git; fi # get boost odeint > 1.58
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo rm -f /usr/include/boost/numeric/odeint.hpp; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo rm -rf /usr/include/boost/numeric/odeint; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo ln -s `pwd`/odeint/include/boost/numeric/odeint.hpp /usr/include/boost/numeric/odeint.hpp; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo ln -s `pwd`/odeint/include/boost/numeric/odeint /usr/include/boost/numeric/; fi
# WRF
- (cd /tmp; wget http://www2.mmm.ucar.edu/wrf/src/WRFV3.6.1.TAR.gz)
- (cd /tmp; tar xvzf WRFV3.6.1.TAR.gz)
# libcloudphxx
- cd ..
- git clone --depth=1 git://github.com/igfuw/libcloudphxx.git
- cd libcloudphxx
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
- make
- sudo make install
- cd ../..
script:
- cd cloudtest
- mkdir build
- cd build
- WRF_SRC_PATH=/tmp/WRFV3 cmake ..
- make
- make test || cat Testing/Temporary/LastTest.log / # "/" intentional! (just to make cat exit with an error code)