forked from geotopmodel/geotop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (43 loc) · 2.07 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
sudo: required
language:
- cpp
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- numdiff
matrix:
include:
- os: linux
compiler: gcc
# - os: osx
# compiler: clang
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip && unzip ninja-linux.zip; else wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip && unzip ninja-mac.zip; fi
- export PATH="$PWD:$PATH"
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget http://mirror.lihnidos.org/GNU/savannah/numdiff/numdiff-5.9.0.tar.gz && tar xf numdiff-5.9.0.tar.gz && cd numdiff-5.9.0 && ./configure --disable-nls && make -j2 && export PATH="$PWD:$PATH" && cd ..; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b -p _miniconda; else wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh && bash Miniconda3-latest-MacOSX-x86_64.sh -b -p _miniconda; fi
- export PATH="$PWD/_miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda create --yes -n py36 python=3.6
- source activate py36
- git clone https://github.com/mesonbuild/meson.git _meson
- export PATH="$PWD/_meson:$PATH"
# - wget https://models.slf.ch/p/meteoio/downloads/get/MeteoIO-2.8.0-src.tar.gz && tar -xvzf MeteoIO-2.8.0-src.tar.gz
# - mv MeteoIO-2.8.0-src MeteoIO
# - cd MeteoIO
# - cmake -DCMAKE_INSTALL_PREFIX=$HOME/meteoio .
# - make -j2
# - sudo make install
# - cd ..
install:
- meson.py -DMUTE_GEOLOG=true -DMUTE_GEOTIMER=true meson-build-release
# - meson.py -DMUTE_GEOLOG=true -DMUTE_GEOTIMER=true -DWITH_METEOIO=true -DMETEOIO_DIR=$HOME/meteoio meson-build-release
- cd meson-build-release
- ninja -j2
script:
- meson.py test --suite geotop:unit_tests --print-errorlogs
- meson.py test --suite geotop:1D --print-errorlogs
- travis_wait 90 meson.py test --suite geotop:3D --print-errorlogs