-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
62 lines (61 loc) · 2.05 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
language: cpp
matrix:
include:
#######################################################
- os: linux
dist: bionic
name: cpplint (code style)
install:
- sudo apt-get install python3-pip
- sudo pip install --upgrade pip
- sudo pip install setuptools cpplint
script:
- python build.py lint
#######################################################
- os: linux
dist: bionic
compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
- gcc-8
install:
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 --slave /usr/bin/g++ g++ /usr/bin/g++-8
- sudo apt-get install libomp-dev
script:
- git submodule update --init --recursive
- mkdir build
- cd build
- cmake ..
- cmake --build . --config Release -- -j2
- ./bin/test_target
- ./bin/benchmark_target
- ./bin/example_pipelines ../samples/example_pipelines/pipeline.yaml
#######################################################
- os: linux
dist: bionic
compiler: clang
install:
- sudo apt-get install libiomp*
script:
- python build.py build clang
- python build.py test clang parallel
- python build.py benchmark clang
- python build.py pipelines clang samples/example_pipelines/pipeline.yaml
#######################################################
- os: osx
osx_image: xcode10.1
install:
- brew install libomp
- export LDFLAGS="-L$(brew --prefix libomp)/lib"
- export CFLAGS="-I$(brew --prefix libomp)/include"
- export CXXFLAGS="-I$(brew --prefix libomp)/include"
script:
- python build.py build clang
- python build.py test clang parallel
- python build.py benchmark clang
- python build.py pipelines clang samples/example_pipelines/pipeline.yaml
#######################################################