forked from tecnickcom/tc-lib-barcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (53 loc) · 1.61 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
language: php
sudo: false
env:
- XDEBUG_MODE=coverage
branches:
only:
- main
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
- 7.4
- nightly
matrix:
allow_failures:
- php: nightly
include:
- os: linux
dist: trusty
language: php
php: 5.4
addons:
apt:
packages:
- devscripts
- fakeroot
- debhelper
- pkg-config
- alien
- rpm
- dh-make
- imagemagick
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;
- if [[ "$TRAVIS_PHP_VERSION" != "nightly" ]] && [[ "$TRAVIS_PHP_VERSION" != "5.3" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm-3.18" ]] && [[ "$TRAVIS_PHP_VERSION" != "hhvm-nightly" ]] && [[ "$TRAVIS_PHP_VERSION" != "7.2" ]]; then printf "\n" | pecl install imagick-beta -v; fi;
before_script:
- composer install --no-interaction
- if [ "$TRAVIS_PHP_VERSION" = "7.4" ]; then composer require php-coveralls/php-coveralls --no-interaction; fi
script:
- make qa rpm deb
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.4" ]; then php vendor/php-coveralls/php-coveralls/bin/php-coveralls -v; fi;