Skip to content

Commit c5fb85d

Browse files
committed
travis changes and comments
1 parent 8d03fe2 commit c5fb85d

3 files changed

Lines changed: 28 additions & 7 deletions

File tree

.travis.yml

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ python:
99
- '3.6'
1010

1111
before_deploy:
12-
- sudo apt-get install pandoc -y
1312
- pip install -r docs/requirements.txt
1413
- python docs/build.py
14+
15+
# extract the current trimesh version from the version file
1516
- export TMVERSION=`python -c "f = open('trimesh/version.py', 'r'); exec(f.read()); print(__version__)"`
17+
18+
# tag the release and if it's already tagged chill
1619
- git tag $TMVERSION || true
1720

1821
deploy:
@@ -27,7 +30,7 @@ deploy:
2730
- provider: pages
2831
skip-cleanup: true
2932
github-token: $GITHUB_TOKEN
30-
keep-history: true
33+
keep-history: false
3134
target-branch: gh-pages
3235
local-dir: docs/html
3336
on:
@@ -36,15 +39,17 @@ deploy:
3639

3740
- provider: releases
3841
api_key: $GITHUB_TOKEN
39-
skip_cleanup: true
42+
skip_cleanup: false
43+
# only release the README github will create source
44+
# tarballs which are what people would want anyway
4045
file: "README.md"
4146
on:
4247
python: '3.6'
4348
branch: master
4449

4550
before_install:
4651
- sudo apt-get update
47-
- sudo apt-get install -y openscad blender meshlab xvfb
52+
- sudo apt-get install -y openscad blender meshlab xvfb pandoc
4853
- sudo wget https://github.com/mikedh/v-hacd-1/raw/master/bin/linux/testVHACD --quiet
4954
-P /usr/bin
5055
- sudo chmod +x /usr/bin/testVHACD
@@ -62,22 +67,37 @@ install:
6267
- conda info -a
6368
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION nomkl numpy scipy
6469
- source activate test-environment
70+
71+
# only install the basic version of the library to make sure
72+
# trimesh imports with only the minimal install
6573
- pip install .
6674
- pip install pytest pytest-cov coveralls
6775

6876
script:
77+
6978
- python -c "import trimesh"
7079
- conda install scikit-image rtree shapely
71-
- if [[ "$TRAVIS_PYTHON_VERSION" != "3.3" && "$TRAVIS_PYTHON_VERSION" != "3.4" ]];
72-
then conda install pyembree && pip install python-fcl; fi
80+
81+
# eat exit codes for these two packages
82+
# pyembree and python-fcl not available everywhere
83+
- conda install pyembree || true
84+
- pip install python-fcl || true
7385
- pip install .[easy]
7486
- pip install triangle xxhash
87+
88+
# run tests
7589
- pytest --cov=trimesh tests/
90+
91+
# downgrade networkx from 2.x to 1.x to make sure our
92+
# graph operations work on both versions of their API
7693
- pip install -Iv networkx==1.11
7794
- python -c "import networkx; print(networkx.__version__)"
7895
- pytest tests/test_graph.py tests/test_scene.py
96+
97+
# make sure examples still work
7998
- cd examples
8099
- for f in *py*; do python ../tests/notebook_run.py exec "$f"; done
81100
- cd ..
101+
82102
after_success:
83103
- coveralls

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
numpydoc
2+
pypandoc
23
numpy
34
scipy
45
networkx

trimesh/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.33.22'
1+
__version__ = '2.33.23'

0 commit comments

Comments
 (0)