-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
56 lines (53 loc) · 1.35 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
language: python
python:
- 3.6
matrix:
include:
- name: trusty
os: linux
dist: trusty
env:
- PYTHON_EXECUTABLE=~/virtualenv/python3.6/bin/python
- name: xenial
os: linux
dist: xenial
env:
- PYTHON_EXECUTABLE=~/virtualenv/python3.6/bin/python
- name: g++8
os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-8
before_install:
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90
env:
- PYTHON_EXECUTABLE=~/virtualenv/python3.6/bin/python
- name: osx
os: osx
language: generic
before_install:
- brew install llvm libomp
- python3 -m pip install virtualenv
- virtualenv venv -p python3
- source venv/bin/activate
env:
- PYTHON_EXECUTABLE=../venv/bin/python
- HOMEBREW_NO_AUTO_UPDATE=1
- CC=/usr/local/opt/llvm/bin/clang
- CXX=/usr/local/opt/llvm/bin/clang++
install:
- pip install -r requirements.txt
script:
- mkdir build
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=Release -DSTK_BUILD_TESTS=1
-DSTK_BUILD_PYTHON_WRAPPER=ON -DPYTHON_EXECUTABLE=$PYTHON_EXECUTABLE
- cmake --build . --config Release
- ctest --output-on-failure
- cd ..
- python setup.py install
- python -m unittest discover test