forked from h-dh/QA-DKRZ
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
46 lines (42 loc) · 1.66 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
language: python
#branches:
# only:
# - master
# - develop
sudo: false
python:
# We don't actually use the Travis Python, but this keeps it organized.
- "2.7"
install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda install conda-build
# Useful for debugging any issues with conda
- conda info -a
# Replace dep1 dep2 ... with your dependencies
#- conda config --add channels birdhouse
#- conda config --add channels conda-forge
#- conda install -q "libnetcdf <4.4.0" "hdf5 >=1.8.15" "isl <0.16" zlib "udunits2 >=2.2.20" libuuid expat curl gcc
#- conda install -c conda-forge -c h-dh qa-dkrz # get qa-dkrz deps
- conda create -n qa-dkrz --channel h-dh/label/dev -c conda-forge -c h-dh qa-dkrz
- conda remove qa-dkrz # but skip qa-dkrz itself
# Get build script
- export PREFIX="$HOME/miniconda"
- echo "CC=\"/usr/bin/gcc\"" > install_configure
- echo "CXX=\"/usr/bin/g++\"" >> install_configure
- echo "CFLAGS=\"-O2 -Wall\"" >> install_configure
- echo "CXXFLAGS=\"-O2 -std=c++11 -Wall -D NC4\"" >> install_configure
- echo "LIB=\"${PREFIX}/lib\"" >> install_configure
- echo "INCLUDE=\"${PREFIX}/include\"" >> install_configure
script:
- touch .ignore_GitHub
- export QA_LIBS="-ludunits2 -lnetcdf -lhdf5_hl -lhdf5 -lz -luuid -lmfhdf -ldf -ljpeg"
- ./install --cf --qa-home=$(pwd) CF CORDEX CMIP5
# - ./install --net --qa-home=$(pwd) CMIP6
after_script:
- test -d "./bin"
- ./scripts/qa-dkrz --example