File tree Expand file tree Collapse file tree 5 files changed +27
-6
lines changed Expand file tree Collapse file tree 5 files changed +27
-6
lines changed Original file line number Diff line number Diff line change 11language : python
2- sudo : true
32python :
43 - " 3.5"
54 - " 3.6"
65install :
7- - pip install -r requirements.txt
6+ - pip install -r dev- requirements.txt
87 - pip install pytest-pep8
98script :
10- - make ci
9+ - make ci
10+ - make build-docs && bash publish-docs.sh
11+
Original file line number Diff line number Diff line change 11ci :
22 python -m unittest
33 pytest --pep snnusdk
4- pytest test
4+ pytest test
5+ build-docs :
6+ cd docs && make html
7+ @echo " Build successful!"
8+
Original file line number Diff line number Diff line change 55SPHINXOPTS =
66SPHINXBUILD = sphinx-build
77SOURCEDIR = source
8- BUILDDIR = ../../ SNNU-SDk-docs
8+ BUILDDIR = SNNU-SDk-docs
99
1010# Put it first so that "make" without argument is like "make help".
1111help :
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if "%SPHINXBUILD%" == "" (
88 set SPHINXBUILD = sphinx-build
99)
1010set SOURCEDIR = source
11- set BUILDDIR = ../../ SNNU-SDk-docs
11+ set BUILDDIR = SNNU-SDk-docs
1212
1313if " %1 " == " " goto help
1414
Original file line number Diff line number Diff line change 1+ #! /usr/bin/bash
2+ export GH_REF=" github.com/snnucs/SNNU-SDK.git"
3+ git clone https://${GH_REF} html
4+ cd html
5+ git checkout gh-pages
6+ git pull origin
7+ sudo mkdir SNNU-SDK-docs/.git
8+ sudo mv html/.git/ SNNU-SDK-docs/.git/
9+ cd SNNU-SDK-docs
10+ pwd
11+ rm -rf doctrees
12+ git config --global user.name " Qi Zhao"
13+ git config --global user.email
" [email protected] " 14+ git add .
15+ git commit -m " Travis CI Auto Builder at ` date +" %Y-%m-%d %H:%M" ` "
16+ git push --quiet " https://${GH_TOKEN} @${GH_REF} " gh-pages:gh-pages
You can’t perform that action at this time.
0 commit comments