@@ -9,10 +9,13 @@ python:
99- ' 3.6'
1010
1111before_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
1821deploy :
@@ -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
4550before_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
6876script :
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+
82102after_success :
83103- coveralls
0 commit comments