-
Notifications
You must be signed in to change notification settings - Fork 71
/
.travis.yml
68 lines (57 loc) · 1.85 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
language: cpp
matrix:
include:
- os: linux
dist: xenial
addons:
apt:
sources: ubuntu-toolchain-r-test
packages: g++-5
env: MATRIX_EVAL="CC=gcc-5 && CXX=g++-5"
before_script:
- python scripts/lint.py
- os: linux
dist: bionic
addons:
apt:
sources: ubuntu-toolchain-r-test
packages: g++-8
env: MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
- os: linux
dist: xenial
compiler: clang
addons:
apt:
packages: clang-5.0
env: MATRIX_EVAL="CC=clang-5.0 && CXX=clang++-5.0"
- os: linux
dist: xenial
compiler: clang
- os: osx
osx_image: xcode10.1
- os: osx
osx_image: xcode9.4
before_install:
- eval "${MATRIX_EVAL}"
install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update-reset; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew unlink python@2; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install open-mpi libomp tbb; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install mpich libmpich-dev; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install libomp-dev; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt install texlive*; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo add-apt-repository 'deb http://ru.archive.ubuntu.com/ubuntu eoan main universe'; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get update; fi
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then sudo apt-get install libtbb-dev; fi
script:
- git submodule update --init --recursive
- python scripts/lint.py
- mkdir build
- cd build
- cmake -D USE_SEQ=ON -D USE_MPI=ON -D USE_OMP=ON -D USE_TBB=ON -D USE_STD=ON -D USE_LATEX=OFF -D CMAKE_BUILD_TYPE=RELEASE ..
- cmake --build . --config -j4
- cd ..
- export OMP_NUM_THREADS=4
- source scripts/run.sh
notifications:
email: false