ohctech_p8/barcode/vendor/tecnickcom/tc-lib-barcode/.travis.yml
2024-10-16 19:18:52 +05:30

62 lines
1.5 KiB
YAML

language: php
sudo: false
branches:
except:
- release
branches:
only:
- master
- develop
php:
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm
- nightly
matrix:
allow_failures:
- php: nightly
addons:
apt:
packages:
- devscripts
- 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" != "hhvm" ]] && [[ "$TRAVIS_PHP_VERSION" != "7.0" ]]; then printf "\n" | pecl install imagick-beta -v; fi;
before_script:
- composer install --no-interaction
- if [ "$TRAVIS_PHP_VERSION" = "5.6" ]; then composer require satooshi/php-coveralls:dev-master --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" = "5.6" ]; then php vendor/bin/coveralls -v; fi;
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PHP_VERSION" = "5.6" ] && [ -n "$BT_APIUSER" ]; then make bintray APIUSER=${BT_APIUSER} APIKEY=${BT_APIKEY}; fi;