Skip to content

Commit

Permalink
Use travis to build doc
Browse files Browse the repository at this point in the history
  • Loading branch information
FerreolS committed Sep 10, 2018
1 parent 1539531 commit 27b884b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
language: python

install:
- pip install -r requirements.txt

before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "ferreolS"
- git checkout release


script:
- cd Doc
- mkdir build
- cd build
- git clone https://github.com/Biomedical-Imaging-Group/GlobalBioIm.git html
- cd html
- git symbolic-ref HEAD refs/heads/gh-pages # auto-switches branches to gh-pages
- rm .git/index
- git clean -fdx
- cd ../..
- make html

after_success:
- cd build/html
- touch .nojekyll
- git add *
- git add .nojekyll
- git commit -a -m "Add Doc"
- git push --force https://${GH_TOKEN}@github.com/Biomedical-Imaging-Group/GlobalBioIm.git gh-pages


4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sphinx
sphinxcontrib-matlabdomain
sphinx_rtd_theme
sphinxcontrib-email

0 comments on commit 27b884b

Please sign in to comment.