-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
40 lines (40 loc) · 1.22 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
notifications:
email:
on_success: never
language: cpp
sudo: false
os:
- osx
osx_image: xcode10.2
env:
global:
- NINJA_STATUS="[%p %u/%t@%o %r]"
- PROJECT_NAME=${PWD##*/}
matrix:
- BUILD_TYPE=Debug OPTIONAL=ON
- BUILD_TYPE=Release OPTIONAL=ON
- BUILD_TYPE=Debug OPTIONAL=OFF
- BUILD_TYPE=Release OPTIONAL=OFF
matrix:
fast_finish: true
before_install:
- softwareupdate --install xcode
- brew update
- brew outdated cmake || brew upgrade cmake
# We need to install gcc before hdf5 because otherwise hdf5 will fail.
# The or statement is a hack to ensure we override the existing gcc without
# having an error
- brew install gcc || brew link --overwrite gcc
- brew install cppcheck doxygen ninja
- brew list [email protected] || brew install [email protected]
- brew install boost-python3
- brew install lcov
- brew unlink [email protected]
- pip3 install numpy==1.17.3
script:
- HDF5_INSTALL_PATH=`brew list [email protected] | grep libhdf5.a`
- pip install gcovr
- mkdir $BUILD_TYPE
- cd $BUILD_TYPE
- HDF5_ROOT=${HDF5_INSTALL_PATH%/*/*} cmake -GNinja -DCMAKE_INSTALL_PREFIX=$PWD/install -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DEXTLIB_FROM_SUBMODULES=ON ..
- ninja all && ninja $PROJECT_NAME-tests && ninja smoketests