forked from PCMSolver/pcmsolver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
155 lines (153 loc) · 4.2 KB
/
.travis.yml
File metadata and controls
155 lines (153 loc) · 4.2 KB
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
153
154
155
language: cpp
sudo: false
dist: trusty
ruby: 2.2.0
notifications:
slack:
secure: F2nQIW6SiaGdw1LjuZOlgBu8rUVMllrDG/5bhmTQP7gyETfViFBjTsHQdTle6jtdb+LudleZaG7WhdEiVcKUa834rKqDk1UOt9p6bsmgbsBZBAaxmPh01iVFhKn3ML7JLjfr1YtH7MWJcsS60cNBrohXfVKfFzNgDqZEu/llr90=
cache:
ccache: true
bundler: 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
addons: &1
apt:
packages:
- cmake3
- cmake3-data
- g++-4.6
- gcc-4.6
- gfortran-4.6
- libboost-math-dev
env:
- CXX_COMPILER='g++-4.6'
- C_COMPILER='gcc-4.6'
- Fortran_COMPILER='gfortran-4.6'
- BUILD_TYPE='release'
- PYTHON_VER='2.7'
- RUN_DANGER=false
- os: linux
addons:
apt:
packages:
- cmake3
- cmake3-data
- clang
- clang-format-3.9
- gfortran-4.6
- libboost-math-dev
env:
- CXX_COMPILER='clang++'
- C_COMPILER='clang'
- Fortran_COMPILER='gfortran-4.6'
- BUILD_TYPE='release'
- PYTHON_VER='3.5'
- STATIC='--static'
- RUN_DANGER=true
- os: osx
osx_image: xcode7.3
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'
- RUN_DANGER=false
- os: osx
osx_image: xcode7.3
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'
- RUN_DANGER=false
- os: linux
addons: *1
env:
- CXX_COMPILER='g++-4.6'
- C_COMPILER='gcc-4.6'
- Fortran_COMPILER='gfortran-4.6'
- BUILD_TYPE='debug'
- PYTHON_VER='2.7'
- COVERAGE='--coverage'
- RUN_DANGER=false
allow_failures:
- os: linux
addons: *1
env:
- CXX_COMPILER='g++-4.6'
- C_COMPILER='gcc-4.6'
- Fortran_COMPILER='gfortran-4.6'
- BUILD_TYPE='debug'
- PYTHON_VER='2.7'
- COVERAGE='--coverage'
- RUN_DANGER=false
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
- |
if [[ "${RUN_DANGER}" = true ]]; then
bundle install
fi
script:
- |
if [[ "${RUN_DANGER}" = true ]]; then
bundle exec danger
fi
- 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
- 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