-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
70 lines (58 loc) · 2.09 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
language: cpp
os:
- linux
compiler:
- gcc
dist: xenial
addons:
apt:
packages:
- g++-6
- boost1.61
- gfortran
- nco
- libnetcdff-dev
- libnetcdf-dev
- python3-dev
- python3-numpy
- python3-cffi
- libblitz0-dev
- python3-pytest
- libthrust-dev
# - libnetcdfc7
sources: &sources
- sourceline: 'ppa:rakhimov/boost'
- ubuntu-toolchain-r-test
# - llvm-toolchain-trusty-4.0
notifications:
email: false
before_install:
# to avoid python lib/interpreter mismatch; https://github.com/travis-ci/travis-ci/issues/5326
# - if [[ $TRAVIS_OS_NAME == 'linux' ]]; then export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g"); fi
# - if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get update; fi
- sudo ln -s /usr/lib/x86_64-linux-gnu/libboost_python-py35.so /usr/lib/x86_64-linux-gnu/libboost_python3.so; # different naming conventions for boost python with python 3
# locally installed stuff comes first
- export PATH=/usr/local/bin:$PATH
install:
#compiler
- if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'g++' ]]; then export CC=gcc-6; fi
- if [[ $TRAVIS_OS_NAME == 'linux' && $CXX == 'g++' ]]; then export CXX=g++-6; fi
# cmake
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then wget https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2-Linux-x86_64.sh; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo sh cmake-3.13.2-Linux-x86_64.sh --prefix=/usr/local --exclude-subdir; fi
# working thrust release
- git clone --depth=1 git://github.com/thrust/thrust.git --branch 1.9.10-1;
- sudo ln -s `pwd`/thrust/thrust /usr/local/include/thrust;
# install libcloudphxx in RelWithDebInfo mode
- git clone --single-branch --branch kida-1d --depth=1 git://github.com/igfuw/libcloudphxx.git
- cd libcloudphxx
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
- make
- sudo make install
- cd ../..
before_script:
- chmod +x ./.travis_scripts/*
script:
- . ./.travis_scripts/lwp_test.sh