Skip to content

Commit

Permalink
updating php versions top test this on
Browse files Browse the repository at this point in the history
  • Loading branch information
Idrinth committed Aug 12, 2020
1 parent 728b0d0 commit 1bcd9b9
Showing 1 changed file with 50 additions and 6 deletions.
56 changes: 50 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,26 @@ cache:
jobs:
include:
# PHP Linting
- stage: PHP Linting
php: 7.3
name: PHP 7.3
before_install:
- phpenv config-rm xdebug.ini || true
- mkdir ../tools && composer init --name=putg/tools --working-dir=../tools
- composer require jakub-onderka/php-parallel-lint:^1 --working-dir=../tools
install: true
script:
- ../tools/vendor/bin/parallel-lint --exclude vendor .
- stage: PHP Linting
php: 7.3
name: PHP 7.3
before_install:
- phpenv config-rm xdebug.ini || true
- mkdir ../tools && composer init --name=putg/tools --working-dir=../tools
- composer require jakub-onderka/php-parallel-lint:^1 --working-dir=../tools
install: true
script:
- ../tools/vendor/bin/parallel-lint --exclude vendor .
- stage: PHP Linting
php: 7.2
name: PHP 7.2
Expand Down Expand Up @@ -44,6 +64,30 @@ jobs:
script:
- ../tools/vendor/bin/parallel-lint --exclude vendor .
# Unit Tests
- stage: Test
php: 7.4
name: PHP 7.4
before_install:
- mkdir ../tools && composer init --name=putg/tools --working-dir=../tools
- composer require codacy/coverage:dev-master --working-dir=../tools
- sh install-phalcon.sh
install:
- composer update
script:
- vendor/bin/phpunit --testdox --coverage-text --coverage-clover clover.xml --whitelist src/ test/
- ../tools/vendor/bin/codacycoverage clover clover.xml
- stage: Test
php: 7.3
name: PHP 7.3
before_install:
- mkdir ../tools && composer init --name=putg/tools --working-dir=../tools
- composer require codacy/coverage:dev-master --working-dir=../tools
- sh install-phalcon.sh
install:
- composer update
script:
- vendor/bin/phpunit --testdox --coverage-text --coverage-clover clover.xml --whitelist src/ test/
- ../tools/vendor/bin/codacycoverage clover clover.xml
- stage: Test
php: 7.2
name: PHP 7.2
Expand Down Expand Up @@ -78,7 +122,7 @@ jobs:
- vendor/bin/phpunit --testdox test/
# Static Code Analysis
- stage: Static Code Analysis
php: 7.2
php: 7.4
name: PHP Assumptions
before_install:
- phpenv config-rm xdebug.ini || true
Expand All @@ -89,7 +133,7 @@ jobs:
script:
- ../tools/vendor/bin/phpa --exclude=./vendor ./
- stage: Static Code Analysis
php: 7.2
php: 7.4
name: "PHP Codesniffer: PSR2"
before_install:
- phpenv config-rm xdebug.ini || true
Expand All @@ -99,7 +143,7 @@ jobs:
script:
- ../tools/vendor/bin/phpcs -p --standard=PSR2 .
- stage: Static Code Analysis
php: 7.2
php: 7.4
name: Composer Require Checker
before_install:
- phpenv config-rm xdebug.ini || true
Expand All @@ -110,7 +154,7 @@ jobs:
script:
- ../tools/vendor/bin/composer-require-checker check --register-namespace=nikic/php-parser:PhpParser\\:lib/PhpParser ./composer.json
- stage: Static Code Analysis
php: 7.2
php: 7.4
name: PHPstan
before_install:
- phpenv config-rm xdebug.ini || true
Expand All @@ -123,7 +167,7 @@ jobs:
- ../tools/vendor/bin/phpstan analyse --level max src test
# Pre-Tag
- stage: Pre-Tag
php: 7.2
php: 7.4
name: PHPmetrics
before_install:
- phpenv config-rm xdebug.ini || true
Expand All @@ -135,7 +179,7 @@ jobs:
script:
- php ../tools/vendor/bin/phpmetrics . --exclude=vendor
- stage: Pre-Tag
php: 7.2
php: 7.4
name: PHP Semver Checker
before_install:
- phpenv config-rm xdebug.ini || true
Expand Down

0 comments on commit 1bcd9b9

Please sign in to comment.