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

Commit a2a3289

Browse files
kokspflanzeweierophinney
authored andcommitted
updated travis build script like template
1 parent d5174e4 commit a2a3289

File tree

1 file changed

+7
-27
lines changed

1 file changed

+7
-27
lines changed

.travis.yml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,16 @@ sudo: false
22

33
language: php
44

5-
branches:
6-
except:
7-
- /^release-.*$/
8-
- /^ghgfk-.*$/
9-
105
cache:
116
directories:
127
- $HOME/.composer/cache
13-
- $HOME/.local
14-
- zf-mkdoc-theme
158

169
env:
1710
global:
1811
- COMPOSER_PROCESS_TIMEOUT=600
1912
- COMPOSER_ARGS="--no-interaction"
2013
- COVERAGE_DEPS="php-coveralls/php-coveralls"
2114
- LEGACY_DEPS="phpunit/phpunit"
22-
- LATEST_DEPS="zendframework/zend-mvc-plugin-flashmessenger zendframework/zend-mvc-i18n zendframework/zend-mvc-console"
23-
- SITE_URL=https://zendframework.github.io/zend-view
24-
- GH_USER_NAME="Matthew Weier O'Phinney"
25-
26-
- GH_REF=github.com/zendframework/zend-view.git
27-
- secure: "kF7z5CxnrD/lsX9sP1+SYLKm1HdT/u1F0xovlyT9fDWrz+X4DBe8Oybzk6UX5HKXQvdhVTfAbHoWhFxFrkcRKrtaEOltk68bYFgnSOYhrK5EhZz6CHqN2j1MtT6FRfdlSOi6OECvCE3wd8nYHixxEviIZyB3L5+H39FOiu5Zi+eJT/myp6IuBO6lQfnSgqKdvuQXlfWSn9VGQJztX6ea2U89eM/TAVWEwbhLAJOsOejkvAy2lvYhIZpvSEkFm9jSp3/JOw8MFljG8UEDZUkpj+zba5/vqzM8thTTbybhAIBF7wNeMNrAeFBnrPz5KDPEQYYG8NG4we6F7GvbevvBz+ej5OJPXx/ulhMiEWKN1qEmQHZ3Gl0kG0O+TgXfqLErbCNn4MLP/K0Avar03m9bvXtaTA5Yqde0rIdspjwdxmKi0OI76UnGETMDyWuXbHkRfhs54sUEOBUdM3dz5lXhlSWPCTlQCgzkVqlgTL5b8b1u7YKpkwJAFSXMhhJBycFCNCfqAy10l2wjgvhXhLgPHle7sSwYR6SMVzkjj59P1UKc2yrxkwl/S7cqrbaeGSGjDv/QVMLtBL3OLqXwIaKy3POF2gQJhFXdrmGzDOADyCbEXVUYve5pQOmT1RdVHaHiT7AmZXEQibR1DW2zzU9eX94XpK9LKzlSzUOtYT8LNNA="
2815

2916
matrix:
3017
include:
@@ -34,9 +21,6 @@ matrix:
3421
- php: 5.6
3522
env:
3623
- DEPS=locked
37-
- TEST_COVERAGE=true
38-
- DEPLOY_DOCS="$(if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then echo -n 'true' ; else echo -n 'false' ; fi)"
39-
- PATH="$HOME/.local/bin:$PATH"
4024
- php: 5.6
4125
env:
4226
- DEPS=latest
@@ -46,6 +30,8 @@ matrix:
4630
- php: 7
4731
env:
4832
- DEPS=locked
33+
- CHECK_CS=true
34+
- TEST_COVERAGE=true
4935
- php: 7
5036
env:
5137
- DEPS=latest
@@ -80,30 +66,24 @@ matrix:
8066
- php: 7.2
8167
- php: nightly
8268

83-
notifications:
84-
irc: "irc.freenode.org#zftalk.dev"
85-
email: false
86-
8769
before_install:
8870
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
89-
- composer self-update
71+
- travis_retry composer self-update
9072

9173
install:
9274
- travis_retry composer install $COMPOSER_ARGS --ignore-platform-reqs
9375
- if [[ $TRAVIS_PHP_VERSION =~ ^5.6 ]]; then travis_retry composer update $COMPOSER_ARGS --with-dependencies $LEGACY_DEPS ; fi
94-
- if [[ $DEPS == 'latest' ]]; then travis_retry composer require --dev --no-update $COMPOSER_ARGS $LATEST_DEPS ; fi
9576
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
9677
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
9778
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
98-
- composer show --installed
79+
- stty cols 120 && composer show
9980

10081
script:
10182
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
10283
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
103-
- 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
104-
105-
after_success:
106-
- if [[ $DEPLOY_DOCS == "true" ]]; then echo "Preparing to build and deploy documentation" ; ./zf-mkdoc-theme/deploy.sh ; echo "Completed deploying documentation" ; fi
10784

10885
after_script:
10986
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry php vendor/bin/php-coveralls -v ; fi
87+
88+
notifications:
89+
email: false

0 commit comments

Comments
 (0)