Skip to content

Commit

Permalink
Travis doc autobuild functionality (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellivingston authored Jan 2, 2020
1 parent 48e207f commit a9cef51
Show file tree
Hide file tree
Showing 135 changed files with 16,397 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
language: c
sudo: required

os:
- linux
Expand All @@ -18,18 +17,34 @@ before_install:
sudo apt-get purge cmake
sudo apt-key update
sudo apt-get update
sudo apt-get -y -f install gfortran python3 cmake
sudo apt-get -y -f install gfortran python python3 cmake
fi
- |
if [ $TRAVIS_OS_NAME = osx ]; then
brew update && brew install gcc
brew update #&& brew install gcc
export PATH=$PATH:/Users/travis/Library/Python/2.7/bin
fi
install:
- pip install --user sphinx sphinx_rtd_theme

script:
- cd docs && make html && cd ..
- cd src
- make all
- make debug
- cd fehmpytests/ && python fehmpytests.py ../src/xfehm_v3.3.1
# - cd fehmpytests/ && python fehmpytests.py ../src/xfehm_v3.3.1

after_success:
- echo FEHM compilation successful

deploy:
provider: pages
skip_cleanup: true
local_dir: docs/docs/html
github_token: $GITHUB_TOKEN
target_branch: gh-pages
keep_history: false
verbose: true
on:
branch: master
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXPROJ = FEHM
SOURCEDIR = source
BUILDDIR = docs

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
Loading

0 comments on commit a9cef51

Please sign in to comment.