Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Moved build/deploy scripts to zf-mkdoc-theme
Browse files Browse the repository at this point in the history
This commit removes the build/deploy scripts from the repository, and moves them
into the zf-mkdoc-theme repository, which includes them as of 0.2.0.

`.travis.yml` was updated to conditionally download and extract the latest
zf-mkdoc-theme archive, and to execute the build chain from it; it is also now
doing so from the repo under the zendframework organization.
  • Loading branch information
weierophinney committed Jan 26, 2016
1 parent 95155d8 commit 12d9a55
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 144 deletions.
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ cache:
- $HOME/.composer/cache
- $HOME/.local
- vendor
- zf-mkdoc-theme

env:
global:
Expand Down Expand Up @@ -50,9 +51,13 @@ after_script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer coveralls ; fi

after_success:
- if [[ $DEPLOY_DOCS == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then pip install --user mkdocs ; fi
- if [[ $DEPLOY_DOCS == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then pip install --user pymdown-extensions ; fi
- if [[ $DEPLOY_DOCS == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then ./doc/deploy.sh ; fi
- export DEPLOY=$(if [[ $DEPLOY_DOCS == 'true' && $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n "true" ; else echo -n "false" ; fi)
- export NEEDS_THEME=$([ -d zf-mkdoc-theme/theme ] ; result=$? ; if (( result == 0 )); then echo -n "false"; else echo -n "true" ; fi)
- if [[ $DEPLOY == "true" ]]; then pip install --user mkdocs ; fi
- if [[ $DEPLOY == "true" ]]; then pip install --user pymdown-extensions ; fi
- if [[ $DEPLOY == "true" && $NEEDS_THEME == "true" ]]; then echo "Downloading zf-mkdoc-theme" ; $(if [[ ! -d zf-mkdoc-theme ]];then mkdir zf-mkdoc-theme ; fi) ; $(curl -s -L https://github.com/zendframework/zf-mkdoc-theme/releases/latest | egrep -o '/zendframework/zf-mkdoc-theme/archive/[0-9]*\.[0-9]*\.[0-9]*.tar.gz' | head -n1 | wget -O zf-mkdoc-theme.tgz --base=https://github.com/ -i -) ; $(cd zf-mkdoc-theme ; tar xzf ../zf-mkdoc-theme.tgz --strip-components=1) ; echo "Finished downloading and installing zf-mkdoc-theme" ; fi
- export CAN_DEPLOY=$([ -f zf-mkdoc-theme/deploy.sh ] ; result=$? ; if (( result == 0 )); then echo -n "true"; else echo -n "false" ; fi)
- if [[ $DEPLOY == "true" && $CAN_DEPLOY == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; else echo "Missing deployment script" ; fi

notifications:
email: true
45 changes: 0 additions & 45 deletions doc/build.sh

This file was deleted.

43 changes: 0 additions & 43 deletions doc/deploy.sh

This file was deleted.

38 changes: 0 additions & 38 deletions doc/img_responsive.php

This file was deleted.

15 changes: 0 additions & 15 deletions doc/swap_index.php

This file was deleted.

0 comments on commit 12d9a55

Please sign in to comment.