Skip to content
This repository was archived by the owner on Dec 8, 2024. It is now read-only.

Documentation #10

Merged
merged 21 commits into from
Jun 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ language: python
sudo: required
dist: trusty

deploy:
provider: pages
local_dir: ${TRAVIS_BUILD_DIR}/docs/build/html
skip_cleanup: true
repo: qmlcode/qmlcode.github.io
target_branch: master
github_token: ${GH_TOKEN} # Set in travis-ci.org dashboard
on:
branch: master
condition: ${TRAVIS_PYTHON_VERSION} = "2.7"

python:
- "2.7"
- "3.4"
Expand All @@ -15,15 +26,23 @@ before_install:
install:
- sudo apt-get install -qq gcc gfortran libblas-dev liblapack-dev
- sudo apt-get install -qq gcc-4.8 gfortran-4.8

- |
if [ ${TRAVIS_PYTHON_VERSION:0:1} = 3 ]; then
sudo apt-get install python3-numpy
python3 setup.py build
python3 setup.py install
pip3 install sphinx
pip3 install sphinx-rtd-theme
cd ${TRAVIS_BUILD_DIR}/docs
make html
elif [ ${TRAVIS_PYTHON_VERSION} = "2.7" ]; then
sudo apt-get install python-numpy
python2 setup.py build
python2 setup.py install

pip2 install sphinx
pip2 install sphinx-rtd-theme
cd ${TRAVIS_BUILD_DIR}/docs
make html
else
echo "ERROR: Unknown Python version."
fi
Expand All @@ -34,3 +53,6 @@ before_script:

script:
- nosetests -v

notifications:
email: false
Empty file added docs/build/html/.nojekyll
Empty file.
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Current list of contributors:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

- Anders S. Christensen (University of Basel)
- Felix Faber (University of Basel)
- Felix A. Faber (University of Basel)
- Bing Huang (University of Basel)
- Lars A. Bratholm (University of Copenhagen)
- Alexandre Tkatchenko (University of Luxembourg)
Expand Down