forked from geotopmodel/geotop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (43 loc) · 1.86 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
46
47
48
49
50
sudo : required
dist : trusty
language: cpp
env:
# - ENABLE_INTERNAL_METEODISTR=ON
# - ENABLE_INTERNAL_METEODISTR=OFF (deactivated to speed up checking )
# - CMAKE_BUILD_TYPE="RELEASE"
# - CMAKE_BUILD_TYPE="DEBUG"
#installing the dependencies: proj and meteoio libraries
install:
#install required boost libraries
- sudo apt-get install libboost-all-dev
- sudo apt-get install doxygen
#it's supposed to be run in a environment with the access to apt-get (following travis guide)
- sudo apt-get install libproj-dev
#in case it is needed you can install a specific version of the library
#- apt-get install libproj-dev=version
#meteio install
- wget https://models.slf.ch/p/meteoio/downloads/get/MeteoIO-2.5.1-src.tar.gz
- tar xvf MeteoIO-2.5.1-src.tar.gz meteoio
- cd meteoio/
#add dependency for proj4 in cmake for meteoio
- cmake -DPROJ4:BOOL=ON .
- cmake -LAH
- make && sudo make install
- cd ..
#install ctest dependency
#- sudo apt-get install python-pandas
#- sudo apt-get install python-nose
- sudo pip install pandas
#actually build the geotop program
script:
#build geotop with meteoio disabled
#- cmake -DENABLE_INTERNAL_METEODISTR:BOOL=$ENABLE_INTERNAL_METEODISTR .
#- cmake -DENABLE_INTERNAL_METEODISTR:BOOL=$ENABLE_INTERNAL_METEODISTR -DCMAKE_BUILD_TYPE:STRING=$CMAKE_BUILD_TYPE .
- mkdir build && cd build && cmake ..
- make -j2
#make tests with this environment
#- if [ "$ENABLE_INTERNAL_METEODISTR" = "OFF" ]; then travis_wait 90 ctest -j19 -E "bonn_1|bonn_2|rendena|CostantMeteo|snow_dstr_SENSITIVITY" .; else travis_wait 90 ctest -j19 .; fi
- CTEST_OUTPUT_ON_FAILURE=TRUE ctest -j4
#choosing the compiler
compiler:
- g++