-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.travis.yml
74 lines (64 loc) · 2.16 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
69
70
71
72
73
74
# Travis CI script
dist: bionic
sudo: required
language: cpp
matrix:
include:
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
addons:
apt:
sources:
- george-edison55-precise-backports
packages:
- python3
- python3-pip
- cmake-data
- cmake
before_install:
- sudo apt-get update -qq
- sudo apt-get install python3
- pyenv install 3.6.3
- pyenv global 3.6.3
#FSeam Python generator dependencies
- sudo apt-get install python3-pip
- sudo pip3 install ply
- sudo pip3 install pip --upgrade
- export PYTHONPATH=$PYTHONPATH:$(pwd):/usr/lib/python3/dist-packages:/usr/local/lib/python3.6/dist-packages
- echo $PYTHONPATH
- ls -la $(python-config --prefix)/
- ls -la $(python-config --prefix)/bin/
- ls -la $(python-config --prefix)/lib/
- ls -la $(python-config --prefix)/include/python3.6m
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir -p ${DEPS_DIR} && cd ${DEPS_DIR}
before_script:
- python3.6 -m venv myenv
- cd ${TRAVIS_BUILD_DIR}
#install catch2
- git clone https://github.com/catchorg/Catch2.git
- cd Catch2
- cmake -Bbuild -H. -DBUILD_TESTING=OFF -DPYTHON_LIBRARY=$(python-config --prefix)/lib/libpython3.so -DPYTHON_INCLUDE_DIR=$(python-config --prefix)/include/python3.6m -DPython3_EXECUTABLE=$(python-config --prefix)/bin/python3
- cd build && make
- sudo make install
- cd ../..
#catch2 dependency
- cd test/src
- curl -O https://raw.githubusercontent.com/catchorg/Catch2/v2.7.0/single_include/catch2/catch.hpp
- cd ../..
# Use Debug builds for running Valgrind and building examples
# - cmake -H. -BBuild-Debug -DCMAKE_BUILD_TYPE=Debug -DTRAVIS_BUILD=ON
# Don't bother with release build for coverage build
- cmake -H. -BBuild-Release -DCMAKE_BUILD_TYPE=Release -DTRAVIS_BUILD=ON -DPYTHON_LIBRARY=$(python-config --prefix)/lib/libpython3.so -DPYTHON_INCLUDE_DIR=$(python-config --prefix)/include/python3.6m -DPython3_EXECUTABLE=$(python-config --prefix)/bin/python3
script:
- cd Build-Release
- make -j 2
- make test