Skip to content

Commit

Permalink
Merge pull request #46 from pug-php/feature/issue-42-drop-old-versions
Browse files Browse the repository at this point in the history
Drop old versions of PHP/Symfony/Pug-php/Twig
  • Loading branch information
kylekatarnls authored Feb 6, 2020
2 parents e1d4738 + 9d56601 commit aeb56a4
Show file tree
Hide file tree
Showing 125 changed files with 3,154 additions and 3,481 deletions.
1 change: 1 addition & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
version: "2"
exclude_patterns:
- "cache-templates/"
- "tests/"
- "templates/"
- "genTravis.php"
Expand Down
6 changes: 0 additions & 6 deletions .styleci.yml

This file was deleted.

332 changes: 15 additions & 317 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,339 +3,37 @@ cache:
apt: true
directories:
- $HOME/.composer/cache
env:
global:
- COMPOSER_FLAGS='--prefer-stable'
- CC_TEST_REPORTER_ID=ae72d604c76bbd8cd0d0b8318930e3a28afd007ab8381d2a8c49ce296ca2b292
matrix:
include:
- php: 5.4
dist: trusty
env:
- REMOVE_PACKAGE="pug/installer"
- REMOVE_DEV_PACKAGE="codeclimate/php-test-reporter"
- SYMFONY_VERSION='2.7.*'
- PUG_VERSION='^2.7.1'
- php: 5.6
env:
- REMOVE_PACKAGE="pug/installer"
- REMOVE_DEV_PACKAGE="codeclimate/php-test-reporter"
- SYMFONY_VERSION='2.7.*'
- PUG_VERSION='^3.0.0'
- php: 5.6
env:
- REMOVE_PACKAGE="pug/installer"
- REMOVE_DEV_PACKAGE="codeclimate/php-test-reporter"
- PREFER_SOURCE="--prefer-source"
- SYMFONY_VERSION='2.8.*'
- PUG_VERSION='^3.0.0'
- php: 5.6
env:
- REMOVE_PACKAGE="pug/installer"
- REMOVE_DEV_PACKAGE="codeclimate/php-test-reporter"
- SYMFONY_VERSION='3.0.*'
- PUG_VERSION='^3.0.0'
- php: 5.6
env:
- REMOVE_PACKAGE="pug/installer"
- REMOVE_DEV_PACKAGE="codeclimate/php-test-reporter"
- SYMFONY_VERSION='3.1.*'
- PUG_VERSION='^3.0.0'
- php: 5.6
env:
- REMOVE_PACKAGE="pug/installer"
- REMOVE_DEV_PACKAGE="codeclimate/php-test-reporter"
- SYMFONY_VERSION='3.2.*'
- PUG_VERSION='^3.0.0'
- php: 5.6
env:
- SYMFONY_VERSION='3.3.*'
- PUG_VERSION='^3.0.0'
- php: 5.6
env:
- SYMFONY_VERSION='3.4.*'
- PUG_VERSION='^3.0.0'
- php: 7.0
env:
- SYMFONY_VERSION='2.7.*'
- PUG_VERSION='^3.0.0'
- php: 7.0
env:
- SYMFONY_VERSION='2.8.*'
- PUG_VERSION='^3.0.0'
- php: 7.0
env:
- SYMFONY_VERSION='3.0.*'
- PUG_VERSION='^3.0.0'
- php: 7.0
env:
- SYMFONY_VERSION='3.1.*'
- PUG_VERSION='^3.0.0'
- php: 7.0
env:
- SYMFONY_VERSION='3.2.*'
- PUG_VERSION='^3.0.0'
- php: 7.0
env:
- SYMFONY_VERSION='3.3.*'
- PUG_VERSION='^3.0.0'
- php: 7.0
env:
- SYMFONY_VERSION='3.4.*'
- PUG_VERSION='^3.0.0'
- php: 7.1
env:
- SYMFONY_VERSION='2.7.*'
- PUG_VERSION='^3.0.0'
- php: 7.1
env:
- SYMFONY_VERSION='2.8.*'
- PUG_VERSION='^3.0.0'
- php: 7.1
env:
- SYMFONY_VERSION='3.0.*'
- PUG_VERSION='^3.0.0'
- php: 7.1
env:
- SYMFONY_VERSION='3.1.*'
- PUG_VERSION='^3.0.0'
- php: 7.1
env:
- SYMFONY_VERSION='3.2.*'
- PUG_VERSION='^3.0.0'
- php: 7.1
env:
- SYMFONY_VERSION='3.3.*'
- PUG_VERSION='^3.0.0'
- php: 7.1
env:
- SYMFONY_VERSION='3.4.*'
- PUG_VERSION='^3.0.0'
- php: 7.1
env:
- SYMFONY_VERSION='4.0.*'
- PUG_VERSION='^3.0.0'
- php: 7.1
env:
- SYMFONY_VERSION='4.1.*'
- PUG_VERSION='^3.0.0'
- php: 7.1
env:
- SYMFONY_VERSION='4.2.*'
- PUG_VERSION='^3.0.0'
- php: 7.1
env:
- SYMFONY_VERSION='4.4.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='2.7.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='2.8.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='3.0.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='3.1.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='3.2.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='3.3.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='3.4.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='4.0.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='4.1.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='4.2.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='4.3.*'
- PUG_VERSION='^2.7.1'
- php: 7.2
env:
- SYMFONY_VERSION='2.7.*'
- PUG_VERSION='^3.0.0'
- php: 7.2
env:
- SYMFONY_VERSION='2.8.*'
- PUG_VERSION='^3.0.0'
- php: 7.2
env:
- SYMFONY_VERSION='3.0.*'
- PUG_VERSION='^3.0.0'
- php: 7.2
env:
- SYMFONY_VERSION='3.1.*'
- PUG_VERSION='^3.0.0'
- php: 7.2
env:
- SYMFONY_VERSION='3.2.*'
- PUG_VERSION='^3.0.0'
- php: 7.2
env:
- SYMFONY_VERSION='3.3.*'
- PUG_VERSION='^3.0.0'
- COMPOSER_FLAGS='--prefer-lowest'
- php: 7.2
env:
- SYMFONY_VERSION='3.4.*'
- PUG_VERSION='^3.0.0'
- php: 7.2
env:
- SYMFONY_VERSION='4.0.*'
- PUG_VERSION='^3.0.0'
- php: 7.2
env:
- SYMFONY_VERSION='4.1.*'
- PUG_VERSION='^3.0.0'
- php: 7.2
env:
- SYMFONY_VERSION='4.2.*'
- PUG_VERSION='^3.0.0'
- php: 7.2
env:
- SYMFONY_VERSION='4.3.*'
- PUG_VERSION='^3.0.0'
- COVERAGE=true
- php: 7.3
env:
- SYMFONY_VERSION='2.7.*'
- PUG_VERSION='^2.7.1'
- php: 7.3
env:
- SYMFONY_VERSION='2.8.*'
- PUG_VERSION='^2.7.1'
- php: 7.3
env:
- SYMFONY_VERSION='3.0.*'
- PUG_VERSION='^2.7.1'
- php: 7.3
env:
- SYMFONY_VERSION='3.1.*'
- PUG_VERSION='^2.7.1'
- php: 7.3
env:
- SYMFONY_VERSION='3.2.*'
- PUG_VERSION='^2.7.1'
- php: 7.3
env:
- SYMFONY_VERSION='3.3.*'
- PUG_VERSION='^2.7.1'
- php: 7.3
env:
- SYMFONY_VERSION='3.4.*'
- PUG_VERSION='^2.7.1'
- php: 7.3
env:
- SYMFONY_VERSION='4.0.*'
- PUG_VERSION='^2.7.1'
- php: 7.3
env:
- SYMFONY_VERSION='4.1.*'
- PUG_VERSION='^2.7.1'
- php: 7.3
env:
- SYMFONY_VERSION='4.2.*'
- PUG_VERSION='^2.7.1'
- php: 7.3
env:
- SYMFONY_VERSION='4.3.*'
- PUG_VERSION='^2.7.1'
- php: 7.3
env:
- SYMFONY_VERSION='2.7.*'
- PUG_VERSION='^3.0.0'
- php: 7.3
env:
- SYMFONY_VERSION='2.8.*'
- PUG_VERSION='^3.0.0'
- php: 7.3
env:
- SYMFONY_VERSION='3.0.*'
- PUG_VERSION='^3.0.0'
- php: 7.3
env:
- SYMFONY_VERSION='3.1.*'
- PUG_VERSION='^3.0.0'
- php: 7.3
env:
- SYMFONY_VERSION='3.2.*'
- PUG_VERSION='^3.0.0'
- php: 7.3
env:
- SYMFONY_VERSION='3.3.*'
- PUG_VERSION='^3.0.0'
- php: 7.3
env:
- SYMFONY_VERSION='3.4.*'
- PUG_VERSION='^3.0.0'
- php: 7.3
env:
- SYMFONY_VERSION='4.0.*'
- PUG_VERSION='^3.0.0'
- php: 7.3
env:
- SYMFONY_VERSION='4.1.*'
- PUG_VERSION='^3.0.0'
- php: 7.3
env:
- SYMFONY_VERSION='4.2.*'
- PUG_VERSION='^3.0.0'
- php: 7.3
env:
- SYMFONY_VERSION='4.3.*'
- PUG_VERSION='^3.0.0'
- php: 7.4
env:
- SYMFONY_VERSION='4.4.*'
- PUG_VERSION='^3.0.0'
- php: 7.4
env:
- STABILITY='dev'
- REMOVE_DEV_PACKAGE="codeclimate/php-test-reporter"
- SYMFONY_VERSION='5.0.*'
- TWIG_VERSION='^2.10.0'
- PUG_VERSION='^3.0.0'
- php: 7.4
env:
- COVERAGE=true
- STABILITY='dev'
- REMOVE_DEV_PACKAGE="codeclimate/php-test-reporter"
- SYMFONY_VERSION='5.0.*'
- TWIG_VERSION='^3.0.0'
- PUG_VERSION='^3.0.0'
before_script:
- if [ "$REMOVE_PACKAGE" != "" ]; then travis_retry composer remove --no-update -n ${REMOVE_PACKAGE}; fi;
- if [ "$REMOVE_DEV_PACKAGE" != "" ]; then travis_retry composer remove --dev --no-update -n ${REMOVE_DEV_PACKAGE}; fi;
- if [ "$SYMFONY_VERSION" != "" ]; then travis_retry composer require --no-update -n symfony/symfony=$SYMFONY_VERSION; fi;
- if [ "$TWIG_VERSION" != "" ]; then travis_retry composer require --no-update -n twig/twig=$TWIG_VERSION; fi;
- if [ "$SYMFONY_VERSION" = "3.0.*" ]; then travis_retry composer require --no-update -n twig/twig=^1; fi;
- if [ "$PUG_VERSION" != "" ]; then travis_retry composer require --no-update -n pug-php/pug=$PUG_VERSION; fi;
- |
if [ "$COVERAGE" = "true" ]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
fi
- if [ "$STABILITY" != "" ]; then travis_retry composer config minimum-stability ${STABILITY}; fi;
- if [ -f /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then mv /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ~/xdebug.ini; fi;
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update -o --no-interaction --prefer-stable
- COMPOSER_MEMORY_LIMIT=-1 travis_retry composer update -o --no-interaction ${COMPOSER_FLAGS}
- if [ -f ~/xdebug.ini ]; then mv ~/xdebug.ini /home/travis/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini; fi;
- chmod -R 0777 tests/project
- chmod -R 0777 tests/project-s5
script:
- if [ "$COVERAGE" = "true" ]; then vendor/bin/phpunit --verbose --coverage-text --coverage-clover=coverage.xml; else vendor/bin/phpunit --verbose --no-coverage; fi;
- if [ "$COVERAGE" = "true" ]; then php tests/checkCoverage.php; fi;
after_script:
- if [ "$COVERAGE" = "true" ]; then vendor/bin/test-reporter --coverage-report coverage.xml; fi;
- if [ "$COVERAGE" = "true" ]; then ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT; fi;
- if [ "$COVERAGE" = "true" ]; then bash <(curl -s https://codecov.io/bash); fi;
addons:
code_climate:
repo_token: ae72d604c76bbd8cd0d0b8318930e3a28afd007ab8381d2a8c49ce296ca2b292
Loading

0 comments on commit aeb56a4

Please sign in to comment.