forked from tecnickcom/tc-lib-pdf-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
68 lines (57 loc) · 1.52 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
language: php
sudo: false
branches:
except:
- release
branches:
only:
- master
- develop
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- hhvm-3.18
- hhvm-nightly
- nightly
matrix:
allow_failures:
- php: hhvm-nightly
- php: nightly
include:
- os: linux
dist: trusty
language: php
php: 5.4
addons:
apt:
packages:
- devscripts
- fakeroot
- debhelper
- pkg-config
- alien
- rpm
- dh-make
before_install:
- composer self-update
- if [ -n "$GH_TOKEN" ]; then git config --global github.token ${GH_TOKEN} && composer config github-oauth.github.com ${GH_TOKEN}; fi;
- if [ -n "$GH_USER" ]; then git config --global github.user ${GH_USER}; fi;
before_script:
- composer install --no-interaction
- if [ "$TRAVIS_PHP_VERSION" = "7.2" ]; then composer require php-coveralls/php-coveralls --no-interaction; fi
script:
- make qa_all
- make report
after_failure:
- cat ./target/logs/junit.xml
- cat ./target/report/phpcpd.txt
after_success:
- cat ./target/report/phploc.txt
- cat ./target/report/phpcompatinfo.txt
- "echo 'coverage_clover: target/coverage/coverage.xml' >> .coveralls.yml"
- "echo 'json_path: target/coverage/coveralls-upload.json' >> .coveralls.yml"
- if [ "$TRAVIS_PHP_VERSION" = "7.2" ]; then php vendor/php-coveralls/php-coveralls/bin/php-coveralls -v; fi;
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PHP_VERSION" = "7.2" ] && [ -n "$BT_APIUSER" ]; then make bintray APIUSER=${BT_APIUSER} APIKEY=${BT_APIKEY}; fi;