forked from dbeurle/mpi_api_wrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
23 lines (23 loc) · 819 Bytes
/
.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
language: cpp
sudo: required
dist: trusty
compiler:
- clang
- gcc
before_install:
- sudo pip install --upgrade pip
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
- echo "yes" | sudo add-apt-repository 'deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.9 main'
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-get -qq update
- sudo apt-get install -y g++-6 libgcc-6-dev libopenmpi-dev openmpi-bin
before_script:
- mkdir build
- cd build
- if [[ "$CXX" == "g++" ]]; then export CXX=g++-6; export CC=gcc-6; cmake ..; fi
- if [[ "$CXX" == "clang++" ]]; then cmake ..; fi
script:
- make -j2
after_success:
- ctest
#- if [[ "$CXX" =~ ^g.* ]]; then make coverage && coveralls --lcov-file coverage.info --no-gcov ; fi