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

Commit

Permalink
Added documentation build automation
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed Feb 8, 2016
1 parent ea19486 commit ae13b00
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ branches:
cache:
directories:
- $HOME/.composer/cache
- $HOME/.local
- zf-mkdoc-theme

env:
global:
- SITE_URL: https://zendframework.github.io/zend-text
- GH_USER_NAME: "Matthew Weier O'Phinney"
- GH_USER_EMAIL: [email protected]
- GH_REF: github.com/zendframework/zend-text.git
- secure: "PByCrJOLcuybgT2Kk3bb5gPrv1sD2MiOa/3ZBs0EN1TF7mhtc7w6EaatD1TCKEWT8VhbsCvZNZzl7/PdetxXS09Ld8s2vshM6KbGSjn+TTmiNOq/GuvBGBTD9VVeAG0MKn0sq/Aq0NMM5Onelu0kAmOFb5yj3P5lXSc4MzWOBYBkbCBNjd7RYFZ+5YzSb9BdGPP2P2OvoTxBmmfZuZ5l0U9agarLejURVzlppLriL35dVdmo/CA2Ki4lOVEUVCuO4iR7qEz7TokWrku9y+p7hk5TfHeC3FF8jeyXiklCKT2kT0wbWcE5IV/kkzPBUdcVdpXL0hA8BKekLiNhpRnqDKBaBtQmp5VocgPEWlxtOweb0rs5KfPjxPpjNQ6FGg2DiA95nswrLAJIPYZyG+RKaL98kfzAC62V81x2OK1PEI5FXOqZxNjrJKPw345VHi8aMCnGDtbA3YN6Jke1Syy0hpQ5gs4x8CqaiJVCKI70rbjZE+ZXBIo/PO6VyI8km2cpG69jCUKO9Jt/q5ZbbIPAXPElpS2BezGs8Qqz99JGBAfizRf1tF2jZQw6L6YAaewXSYRA+37i57fYxd+1QyBuI5JMjqqxBahKOzoa1Xz5uWNYJeU5aV/sw1xtyjTZx7wYcClVsgXH58V+T1Umh4qvD5NE1n5P8L/4013MBnehXtc="

matrix:
fast_finish: true
Expand All @@ -22,6 +32,8 @@ matrix:
env:
- SERVICE_MANAGER_VERSION="^2.7.5"
- EXECUTE_TEST_COVERALLS=true
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
- PATH="$HOME/.local/bin:$PATH"
- php: 7
- php: hhvm
allow_failures:
Expand All @@ -46,6 +58,10 @@ script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi
- if [[ $DEPLOY_DOCS == "true" && "$TRAVIS_TEST_RESULT" == "0" ]]; then wget -O theme-installer.sh "https://raw.githubusercontent.com/zendframework/zf-mkdoc-theme/master/theme-installer.sh" ; chmod 755 theme-installer.sh ; ./theme-installer.sh ; fi

after_success:
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi

after_script:
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi

0 comments on commit ae13b00

Please sign in to comment.