forked from mockery/mockery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
119 lines (109 loc) · 2.57 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
sudo: false
language: php
matrix:
allow_failures:
- php: hhvm
- php: 7.4snapshot
- php: nightly
fast_finish: true
include:
- php: 5.6
env:
- DEPS=lowest
- php: 5.6
env:
- DEPS=latest
- php: 5.6
env:
- PHPUNIT=minimum
- DEPS=latest
- php: 7.0
env:
- DEPS=lowest
- php: 7.0
env:
- DEPS=latest
- php: 7.1
env:
- DEPS=lowest
- php: 7.1
env:
- DEPS=latest
- php: 7.2
env:
- DEPS=lowest
- php: 7.2
env:
- DEPS=latest
- php: 7.3
env:
- DEPS=lowest
- php: 7.3
env:
- DEPS=latest
- php: 7.4snapshot
env:
- DEPS=lowest
- php: 7.4snapshot
env:
- DEPS=latest
- php: nightly
env:
- DEPS=lowest
- php: nightly
env:
- DEPS=latest
- php: hhvm
env:
- DEPS=lowest
- php: hhvm
env:
- DEPS=latest
cache:
directories:
- .composer/cache
before_install:
- alias composer=composer\ -n && composer self-update
install:
- if [[ $PHPUNIT == 'minimum' ]]; then sed -i 's/~5.7|/5.4.*|/g' ./composer.json ; fi
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update --no-interaction ; fi
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable --no-interaction ; fi
before_script:
# Install extensions for PHP 5.x series. 7.x includes them by default.
- |
if [[ $TRAVIS_PHP_VERSION = 5.* ]]; then
cat <<< '
extension=mongo.so
extension=redis.so
' >> ~/.phpenv/versions/"$(phpenv version-name)"/etc/conf.d/travis.ini
fi
script:
- |
if [[ $TRAVIS_PHP_VERSION = 5.* ]]; then
./vendor/bin/phpunit --coverage-text --coverage-clover="build/logs/clover.xml" --testsuite="Mockery Test Suite PHP56";
else
./vendor/bin/phpunit --coverage-text --coverage-clover="build/logs/clover.xml" --testsuite="Mockery Test Suite";
fi
after_success:
- composer require satooshi/php-coveralls
- vendor/bin/coveralls -v
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover "build/logs/clover.xml"
- make apidocs
notifications:
email:
- padraic.brady@gmail.com
- dave@atstsolutions.co.uk
irc: irc.freenode.org#mockery
deploy:
overwrite: true
provider: pages
file_glob: true
file: docs/api/*
local_dir: docs/api
skip_cleanup: true
github_token: $GITHUB_TOKEN
on:
branch: master
php: '7.1'
condition: $DEPS = latest