-
Notifications
You must be signed in to change notification settings - Fork 140
/
.travis.yml
57 lines (51 loc) · 1.33 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
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- hhvm
matrix:
allow_failures:
- php: 7.0
- php: 7.1
- php: 7.2
- php: 7.3
- php: hhvm
env:
global:
- secure: "FEHYuvMQxf987C9CxTb5lrzwYP2qH/VWvUKipsJ8X1+k2VS8QVzG5mZcHfely4CrA/j1y8dBaYV3AJOSdmRIz12zWDDJkGe/dbGRcQcS1mIXK1pZVwLqb/1k98L8M7JWQZS0lW+7sztzCNFude3/rPEVKPBW53BW12A1P1IPZrc="
before_script:
- java -version
## Packages
- sudo apt-get -qq update > /dev/null
- sudo apt-get -qq install graphviz > /dev/null
## Composer
- composer self-update
- composer install --prefer-source
## PHPDocumentor
- mkdir -p build/docs
- mkdir -p build/coverage
script:
## PHP_CodeSniffer
- ./vendor/bin/phpcs src/ tests/ --standard=PSR2 -n
## PHP Copy/Paste Detector
# - ./vendor/bin/phpcpd src/
## PHP Mess Detector
- ./vendor/bin/phpmd src/,tests/ text ./phpmd.xml.dist
## PHPUnit
- ./vendor/bin/phpunit -c ./ --coverage-text --coverage-html ./build/coverage
## PHPLOC
- ./vendor/bin/phploc src/
## PHPDocumentor
- ./vendor/bin/phpdoc -q -d ./src -t ./build/docs --template="responsive-twig"
after_script:
## PHPDocumentor
- bash .travis_shell_after_success.sh
## Scrutinizer
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml