forked from zendframework/zend-barcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (66 loc) · 3.28 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
sudo: false
language: php
branches:
except:
- /^release-.*$/
- /^ghgfk-.*$/
cache:
directories:
- $HOME/.composer/cache
- $HOME/.local
- zf-mkdoc-theme
env:
global:
- TESTS_ZEND_BARCODE_PDF_SUPPORT: true
- SITE_URL: https://zendframework.github.io/zend-barcode
- GH_USER_NAME: "Matthew Weier O'Phinney"
- GH_USER_EMAIL: matthew@weierophinney.net
- GH_REF: github.com/zendframework/zend-barcode.git
- secure: "OcQVNRTNC4jq+z7P2IvpUNB8RBA00wnlQb2NV5cq4yWqHOOS6yFdRttzklJocPJ8U6rrMFRgTSdnEXtJU4kpL1esR7Q5zS28bwogG1sCRGl0FYjmH6bc28pi5ayktiE/s8ycO6Bqg7qcX/uQDy2SbEIiWPk2Pg8YuKHu59lpQbqKHI45qfqALr0LcL6JdY5ktqX8ZuIe1S4Ovmylzir8T3FCKGFMFP86G580/aOhzxoMSlWVsWMhAh9RUVgPCmXxvwWh2s62GU2mPS9HJA6XcESp05pRQbjoifmvcnbrFx+AOMqmAhvlcrnozlwyKCbTLpTgpgDsjltNsEBYfolThHGNbTyZ9LpMGXVgTziVTbr+UqxjwXpBVPjbkpv4f1I3WwjqtJBOs1HIlNEgppug/Zyc6NfvCFL/ayXmQkdDSN7VpiFt88T9cIxw/2rmvSKi/qOtZv9Fhssucg2yufB9xLSWiGQt5+8aMbDUcBfwAuxoCg5C0YO05DQTWkb+ZAj7NOp7gGPWGJwWxY6lT+DKHVx7RcejcOczvxNPmnTPsCGE2EepTzZ+NwPubcoRWjx3DHe/vlU9dOSNGyUiW9ttocUj6eEiZTB2P9IsJ19gT+8dJ88gcSdRiaxNV+2LX+MBe3L4j5YzHzDH4reyPK1NR4m9Lmv1GCoQ04qozaCo0/U="
matrix:
fast_finish: true
include:
- php: 5.5
env:
- EXECUTE_CS_CHECK=true
- php: 5.5
env:
- SERVICE_MANAGER_VERSION="^2.7.5"
- php: 5.6
env:
- 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: 5.6
env:
- SERVICE_MANAGER_VERSION="^2.7.5"
- php: 7
- php: 7
env:
- SERVICE_MANAGER_VERSION="^2.7.5"
- php: hhvm
- php: hhvm
env:
- SERVICE_MANAGER_VERSION="^2.7.5"
allow_failures:
- php: hhvm
notifications:
irc: "irc.freenode.org#zftalk.dev"
email: false
before_install:
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
- composer self-update
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
- if [[ $SERVICE_MANAGER_VERSION != '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:$SERVICE_MANAGER_VERSION" ; fi
- if [[ $SERVICE_MANAGER_VERSION == '' ]]; then composer require --dev --no-update "zendframework/zend-servicemanager:^3.0.3" ; fi
install:
- travis_retry composer install --no-interaction --ignore-platform-reqs
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