-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
34 lines (34 loc) · 1.01 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
dist: bionic
#addons:
# apt:
# packages:
# - libopenmpi-dev
# - cmake
language: cpp
compiler:
- clang
- gcc
before_install:
- pushd ${HOME}
- sudo apt-get -y update
- sudo apt-get -y install apt-transport-https ca-certificates gnupg software-properties-common wget
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
- sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
- sudo apt-get -y update
- sudo apt-get install -y cmake
- sudo apt-get install -y libopenmpi-dev
- sudo apt-get install -y openmpi-bin
- sudo apt-get install -y libhdf5-openmpi-dev
- popd
install:
- pushd ${HOME}
- popd
before_script:
- git reset --hard ${TRAVIS_PULL_REQUEST_SHA}
- ${TRAVIS_BUILD_DIR}/scripts/travis/run-format.sh
script:
- mkdir build_${TRAVIS_BUILD_NUMBER}
- cd build_${TRAVIS_BUILD_NUMBER}
- /usr/bin/cmake -DCMAKE_BUILD_TYPE=Release ..
- make
- ctest -VV .