-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
152 lines (150 loc) · 4.26 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
language: cpp
sudo: false
notifications:
slack:
secure: F2nQIW6SiaGdw1LjuZOlgBu8rUVMllrDG/5bhmTQP7gyETfViFBjTsHQdTle6jtdb+LudleZaG7WhdEiVcKUa834rKqDk1UOt9p6bsmgbsBZBAaxmPh01iVFhKn3ML7JLjfr1YtH7MWJcsS60cNBrohXfVKfFzNgDqZEu/llr90=
cache:
ccache: true
directories:
- "$HOME/.ccache"
env:
global:
- USE_CCACHE=1
- CCACHE_COMPRESS=1
- CCACHE_MAXSIZE=200M
- CCACHE_CPP2=1
- MINICONDA_VER=''
branches:
except:
- fix-appveyor
matrix:
include:
- os: linux
compiler: gcc
addons: &1
apt:
sources:
- ubuntu-toolchain-r-test
- boost-latest
- george-edison55-precise-backports
packages:
- cmake
- cmake-data
- g++-4.6
- gcc-4.6
- libboost1.55-all-dev
- gfortran-4.6
env:
- CXX_COMPILER='g++-4.6'
- C_COMPILER='gcc-4.6'
- Fortran_COMPILER='gfortran-4.6'
- BUILD_TYPE='release'
- PYTHON_VER='2.7'
- os: linux
compiler: clang
addons:
apt:
sources:
- llvm-toolchain-precise-3.5
- ubuntu-toolchain-r-test
- boost-latest
- george-edison55-precise-backports
packages:
- cmake
- cmake-data
- clang-3.5
- libboost1.55-all-dev
- gfortran
env:
- CXX_COMPILER='clang++-3.5'
- C_COMPILER='clang-3.5'
- Fortran_COMPILER='gfortran'
- BUILD_TYPE='release'
- PYTHON_VER='3.5'
- STATIC='--static'
- os: osx
osx_image: xcode7.3
compiler: clang
env:
- CXX_COMPILER='clang++'
- C_COMPILER='clang'
- Fortran_COMPILER='gfortran-5'
- BUILD_TYPE='release'
- PYTHON_VER='2.7'
- HOMEBREW_GCC='homebrew/versions/gcc5'
- STATIC='--static'
- os: osx
osx_image: xcode7.3
compiler: gcc
env:
- CXX_COMPILER='g++-6'
- C_COMPILER='gcc-6'
- Fortran_COMPILER='gfortran-6'
- BUILD_TYPE='release'
- PYTHON_VER='3.5'
- HOMEBREW_GCC='homebrew/versions/gcc6'
- os: linux
compiler: gcc
addons: *1
env:
- CXX_COMPILER='g++-4.6'
- C_COMPILER='gcc-4.6'
- Fortran_COMPILER='gfortran-4.6'
- BUILD_TYPE='release'
- PYTHON_VER='2.7'
- COVERAGE='--coverage'
allow_failures:
- os: linux
compiler: gcc
addons: *1
env:
- CXX_COMPILER='g++-4.6'
- C_COMPILER='gcc-4.6'
- Fortran_COMPILER='gfortran-4.6'
- BUILD_TYPE='release'
- PYTHON_VER='2.7'
- COVERAGE='--coverage'
install:
- |
if [[ "${PYTHON_VER}" == "2.7" ]]; then
MINICONDA_VER='Miniconda2-latest'
else
MINICONDA_VER='Miniconda3-latest'
fi
- |
if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then
brew install cmake boost
brew reinstall ${HOMEBREW_GCC}
echo "Downloading ${MINICONDA_VER}-MacOSX-x86_64.sh"
wget https://repo.continuum.io/miniconda/${MINICONDA_VER}-MacOSX-x86_64.sh -O miniconda.sh;
else
echo "Downloading ${MINICONDA_VER}-Linux-x86_64.sh"
wget https://repo.continuum.io/miniconda/${MINICONDA_VER}-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update --quiet conda
- conda info --all
- conda env create --quiet --file .pcmsolver-travis.yml python=$PYTHON_VER
- source activate pcmsolver
- conda list
before_script:
- python -V
- cmake --version
- cd ${TRAVIS_BUILD_DIR}
- echo 'Build set up summary'
- ${CXX_COMPILER} --version
- ${C_COMPILER} --version
- ${Fortran_COMPILER} --version
- python setup.py --cxx=${CXX_COMPILER} --cc=${C_COMPILER} --fc=${Fortran_COMPILER} --type=${BUILD_TYPE} --cmake-options='-Hprojects/CMake' ${STATIC} ${COVERAGE}
- cd build
- ../.scripts/ci_build.sh
script:
- python ../.scripts/ci_test.py ctest --output-on-failure --verbose
- python ../.scripts/ci_print_failing.py
after_success:
- |
if [[ "${COVERAGE}" = true ]]; then
coveralls --root .. -E ".*external.*" -E ".*CMakeFiles.*" -E ".*generated.*" -E ".*tests*" -E ".*tools.*" -E ".*cmake*" -E ".*doc*" -E ".*examples*" || echo 'coveralls upload failed.'
fi