-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
67 lines (55 loc) · 1.55 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
language: python
matrix:
include:
- name: "Python2.7 + PCL1.7 + Numpy1.13"
dist: xenial
python: 2.7
env: NUMPY=1.13 PCLVER=170
- name: "Python2.7 + PCL1.8 + Numpy1.15"
dist: bionic
python: 2.7
env: NUMPY=1.15 PCLVER=180
- name: "Python3.6 + PCL1.7 + Numpy1.13"
dist: xenial
python: 3.6
env: NUMPY=1.13 PCLVER=170
- name: "Python3.7 + PCL1.8 + Numpy1.15"
dist: bionic
python: 3.7
env: NUMPY=1.15 PCLVER=180
- name: "Python3.8 + PCL1.10 + Numpy1.19"
dist: focal
python: 3.8
env: NUMPY=1.19 PCLVER=1100
# - os: osx
# osx_image: xcode10.2 # Python 3.7.2 running on macOS 10.14.3
# language: shell
# - os: windows
# python: 3.6
# env: NUMPY=1.12
branches:
only:
- master
before_install:
- sudo apt update || true
- sudo apt install -y libpcl-dev
- pip install numpy==$NUMPY cython scikit-build
- if [ "$RUN_COVERAGE" == "yes" ]; then
pip install coveralls pytest-cov -q;
fi
- if [ "$PCLVER" -lt 180 ]; then
sudo apt install -y libproj-dev;
sudo ln -s /usr/lib/x86_64-linux-gnu/libvtkCommonCore-6.2.so /usr/lib/libvtkproj4.so;
fi
install:
- python setup.py develop
script:
# visualizer is not available in container
- if [ "$RUN_COVERAGE" == "yes" ]; then
py.test test/ --ignore test/test_visualizer.py --cov;
else
py.test test/ --ignore test/test_visualizer.py;
fi
after_success:
- if [ "$RUN_COVERAGE" == "yes" ]; then coveralls; fi
# TODO: push dist packages directly to PyPI