Skip to content

Commit

Permalink
Refactor CI config and scripts to avoid duplicated code
Browse files Browse the repository at this point in the history
  • Loading branch information
CAM-Gerlach committed Aug 26, 2020
1 parent 7bc745a commit 1fc9a40
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ install:
- ci/install.sh

script:
- set -e
- make multidocs
- ci/build.sh
- make linkcheck

after_success:
- if [[ "${TRAVIS_BRANCH}" == "master" ]]; then
doctr deploy develop --built-docs doc/_build/html;
fi
Expand Down
4 changes: 0 additions & 4 deletions ci/build.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
#!/bin/bash -ex

pip3 install -U pip
pip3 install sphinx doctr sphinx-panels sphinx-multiversion
# You can change the command above to use a different version of the theme (but return it to the correct one before merging)
pip3 install git+https://github.com/dalthviz/spyder-docs-sphinx-theme.git@sidebar_widgets
make multidocs
3 changes: 2 additions & 1 deletion ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

pip3 install -U pip
pip3 install sphinx doctr sphinx-panels sphinx-multiversion
pip3 install git+https://github.com/spyder-ide/spyder-docs-sphinx-theme.git@develop_spyder
# You can change the command above to use a different version of the theme (but return it to the correct one before merging)
pip3 install git+https://github.com/dalthviz/spyder-docs-sphinx-theme.git@sidebar_widgets

0 comments on commit 1fc9a40

Please sign in to comment.