forked from mikedh/trimesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
103 lines (86 loc) · 2.81 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
language: python
sudo: required
dist: trusty
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
before_deploy:
- pip install -r docs/requirements.txt
- python docs/build.py
# extract the current trimesh version from the version file
- export TMVERSION=`python -c "f = open('trimesh/version.py', 'r'); exec(f.read()); print(__version__)"`
# tag the release and if it's already tagged chill
- git tag $TMVERSION || true
deploy:
- provider: pypi
user: mikedh
on:
python: '3.6'
branch: master
password:
secure: MmFES9M+UZbfpQsWeSVlhgUcdbpCymaeJwExxcyJbkKKWdRoZLRusqCmTdQ7Rai8DxH++ooqgEnHwq+D9e/8Y0jbbFBScPbJVeNFj1B4xV36NlyV8A0027/UTuhvkhoUv/xP6mN4TfuC3tWEj5m20DQlibjjxS154r/BlA6/kic=
- provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: false
target-branch: gh-pages
local-dir: docs/html
on:
python: '3.6'
branch: master
- provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: false
# only release the README github will create source
# tarballs which are what people would want anyway
file: "README.md"
on:
python: '3.6'
branch: master
before_install:
- sudo apt-get update
- sudo apt-get install -y openscad blender meshlab xvfb pandoc
- sudo wget https://github.com/mikedh/v-hacd-1/raw/master/bin/linux/testVHACD --quiet
-P /usr/bin
- sudo chmod +x /usr/bin/testVHACD
install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then wget --quiet https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh
-O miniconda.sh; else wget --quiet https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
-O miniconda.sh; fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels conda-forge
- conda update -q conda
- conda info -a
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION nomkl numpy scipy
- source activate test-environment
# only install the basic version of the library to make sure
# trimesh imports with only the minimal install
- pip install .
- pip install pytest pytest-cov coveralls
script:
- python -c "import trimesh"
- conda install scikit-image rtree shapely
# eat exit codes for these two packages
# pyembree and python-fcl not available everywhere
- conda install pyembree || true
- pip install python-fcl || true
- pip install .[easy]
- pip install triangle xxhash
# run tests
- pytest --cov=trimesh tests/
# downgrade networkx from 2.x to 1.x to make sure our
# graph operations work on both versions of their API
- pip install -Iv networkx==1.11
- python -c "import networkx; print(networkx.__version__)"
- pytest tests/test_graph.py tests/test_scene.py
# make sure examples still work
- cd examples
- for f in *py*; do python ../tests/notebook_run.py exec "$f"; done
- cd ..
after_success:
- coveralls