forked from phpDocumentor/phpDocumentor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (61 loc) · 2.14 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
language: php
php: [ 7.1, 7.2, 7.3 ]
sudo: false
branches:
except: /^(\S*)-nightly-(\S*)$/
matrix:
fast_finish: true
install:
- travis_retry composer install --no-interaction --prefer-dist --optimize-autoloader
before_script:
- travis_retry composer global require phpunit/phpunit ^6 # cannot use phpunit.phar or require-dev, because this package is a phpunit dep
script:
- $HOME/.composer/vendor/bin/phpunit --no-coverage && bin/behat -p default
jobs:
include:
- stage: test
php: 7.1
name: "php 7.1 Smoke test"
before_script:
- travis_retry sudo apt update
- travis_retry sudo apt install graphviz
script:
- ./bin/phpdoc run
- stage: test
php: 7.1
name: "php 7.1 Behat with phar"
before_script:
- travis_retry sudo apt update
- travis_retry sudo apt install graphviz
script:
- git tag v3.999.999
- php bin/console cache:warmup --env=prod && php -d phar.readonly=false tools/box.phar compile
- bin/behat -p phar
- php build/phpDocumentor.phar run
- stage: test
php: 7.1
name: "php 7.1 Behat templates"
script:
- mkdir -p /tmp/phpdoc-behat/clean_template/simple
- bin/behat -p template
- stage: analysis
php: 7.1
name: "Phpunit code coverage"
script:
- $HOME/.composer/vendor/bin/phpunit
after_script:
- travis_retry wget --no-verbose https://phar.io/releases/phive.phar
- travis_retry php phive.phar --no-progress install --trust-gpg-keys E82B2FB314E9906E php-coveralls/php-coveralls && ./tools/php-coveralls --verbose
- travis_retry wget --no-verbose https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml
cache:
directories:
- $HOME/.composer
- $HOME/.phive
- ./docker
notifications:
irc: "irc.freenode.org#phpdocumentor"
slack:
secure: "fjumM0h+4w3EYM4dpgqvpiCug7m4sSIC5+HATgwga/Nrc6IjlbWvGOv3JPgD3kQUhi18VmZfUYPmCv916SIbMnv8JWcrSaJXnPCgmxidvYkuzQDIw1HDJbVppGnkmwQA/qjIrM3sIEMfnu/arLRJQLI363aStZzGPxwIa4PDKcg="
email: