File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ addons:
1111 - python3
1212 - python3-pip
1313 - python3-setuptools
14+ - python3-sphinx
1415
1516matrix :
1617 include :
@@ -35,8 +36,26 @@ before_script:
3536 $CMAKE_ARGS ..
3637
3738script :
38- # - make -j2 && ctest -V
39+ # build and run tests
40+ - make -j2 && ctest -V
41+
3942 # install and test python module
40- - cd .. && rm -rf build
43+ - cd $TRAVIS_BUILD_DIR && rm -rf build
4144 - pip3 install --user --verbose .
4245 - cd python && python3 -m unittest
46+
47+ after_success :
48+ # build docs
49+ - pip3 install --user sphinx-rtd-theme
50+ - cd $TRAVIS_BUILD_DIR/python/docs && make html
51+ - touch _build/html/.nojekyll
52+
53+ deploy :
54+ provider : pages
55+ skip_cleanup : true
56+ github_token : $GITHUB_TOKEN
57+ keep_history : true
58+ local_dir : $TRAVIS_BUILD_DIR/python/docs/_build/html/
59+ on :
60+ branch : master
61+ condition : $BUILD_TYPE = Release
You can’t perform that action at this time.
0 commit comments