Skip to content

Commit

Permalink
Improve php compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaasuni committed Dec 19, 2020
1 parent ce05b56 commit eb6d1e8
Show file tree
Hide file tree
Showing 54 changed files with 645 additions and 717 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -11,5 +11,7 @@ phpunit.xml
**/._*
**/*.tmp
**/*.bak
.phpunit.result.cache
.phpdoc
**/temp.php
example/test.php
20 changes: 7 additions & 13 deletions .travis.yml
Expand Up @@ -2,14 +2,12 @@ language: php

sudo: false

branches:
except:
- release
env:
- XDEBUG_MODE=coverage

branches:
only:
- master
- develop
- main

php:
- 5.6
Expand All @@ -18,13 +16,10 @@ php:
- 7.2
- 7.3
- 7.4
- hhvm-3.18
- hhvm-nightly
- nightly

matrix:
allow_failures:
- php: hhvm-nightly
- php: nightly
include:
- os: linux
Expand Down Expand Up @@ -52,11 +47,10 @@ before_install:

before_script:
- composer install --no-interaction
- if [ "$TRAVIS_PHP_VERSION" = "7.2" ]; then composer require php-coveralls/php-coveralls --no-interaction; fi
- if [ "$TRAVIS_PHP_VERSION" = "7.4" ]; then composer require php-coveralls/php-coveralls --no-interaction; fi

script:
- make qa_all
- make report
- make qa rpm deb

after_failure:
- cat ./target/logs/junit.xml
Expand All @@ -67,5 +61,5 @@ after_success:
- 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;
- if [ "$TRAVIS_PHP_VERSION" = "7.4" ]; then php vendor/php-coveralls/php-coveralls/bin/php-coveralls -v; fi;
- if [ "$TRAVIS_BRANCH" == "main" ] && [ "$TRAVIS_PHP_VERSION" = "7.4" ] && [ -n "$BT_APIUSER" ]; then make bintray APIUSER=${BT_APIUSER} APIKEY=${BT_APIKEY}; fi;
2 changes: 1 addition & 1 deletion LICENSE
Expand Up @@ -3,7 +3,7 @@
*
* SOFTWARE : tc-lib-barcode
* AUTHOR : Nicola Asuni <info@tecnick.com>
* COPYRIGHT : 2001-2020 Nicola Asuni - Tecnick.com LTD
* COPYRIGHT : 2001-2021 Nicola Asuni - Tecnick.com LTD
**********************************************************************

This is free software: you can redistribute it and/or modify it
Expand Down

0 comments on commit eb6d1e8

Please sign in to comment.