Skip to content

Commit 1a36cbd

Browse files
committed
Removed PHP 7.4 from builds in favor of PHP 8.1
1 parent a89b33b commit 1a36cbd

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.travis.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ language: php
44

55
php:
66
- 7.2
7-
- 7.4
87
# - hhvm
98

109
services:
@@ -51,6 +50,15 @@ matrix:
5150
- composer require --dev phpunit/phpunit ~9.3 --ignore-platform-reqs
5251
- cd tests/PHPUnit
5352
- $PIWIK_ROOT_DIR/tests/travis/travis.sh
53+
- php: 8.1
54+
env: TEST_SUITE=PluginTests MYSQL_ADAPTER=PDO_MYSQL TEST_AGAINST_CORE=minimum_required_piwik SKIP_COMPOSER_INSTALL=1
55+
script:
56+
- cd $PIWIK_ROOT_DIR
57+
- composer install --ignore-platform-reqs
58+
- composer remove --dev phpunit/phpunit
59+
- composer require --dev phpunit/phpunit ~9.3 --ignore-platform-reqs
60+
- cd tests/PHPUnit
61+
- $PIWIK_ROOT_DIR/tests/travis/travis.sh
5462

5563
dist: bionic
5664

@@ -76,7 +84,7 @@ install:
7684
- '[ -d ./tests/travis/.git ] || sh -c "rm -rf ./tests/travis && git clone https://github.com/matomo-org/travis-scripts.git ./tests/travis"'
7785
- cd ./tests/travis ; git checkout master ; cd ../..
7886

79-
- export GENERATE_TRAVIS_YML_COMMAND="php ./tests/travis/generator/main.php generate:travis-yml --plugin=\"DeviceDetectorCache\" --php-versions=\"7.2,7.4\" --distribution=\"bionic\" --sudo-false --verbose"
87+
- export GENERATE_TRAVIS_YML_COMMAND="php ./tests/travis/generator/main.php generate:travis-yml --plugin=\"DeviceDetectorCache\" --php-versions=\"7.2\" --distribution=\"bionic\" --sudo-false --verbose"
8088
- '[[ "$TRAVIS_JOB_NUMBER" != *.1 || "$TRAVIS_PULL_REQUEST" != "false" ]] || ./tests/travis/autoupdate_travis_yml.sh'
8189

8290
- ./tests/travis/checkout_test_against_branch.sh

0 commit comments

Comments
 (0)