diff --git a/.travis.yml b/.travis.yml index d83f1c2f..c46124dd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ language: php php: - 7.2 - - 7.4 # - hhvm services: @@ -51,6 +50,15 @@ matrix: - composer require --dev phpunit/phpunit ~9.3 --ignore-platform-reqs - cd tests/PHPUnit - $PIWIK_ROOT_DIR/tests/travis/travis.sh + - php: 8.1 + env: TEST_SUITE=PluginTests MYSQL_ADAPTER=PDO_MYSQL TEST_AGAINST_CORE=minimum_required_piwik SKIP_COMPOSER_INSTALL=1 + script: + - cd $PIWIK_ROOT_DIR + - composer install --ignore-platform-reqs + - composer remove --dev phpunit/phpunit + - composer require --dev phpunit/phpunit ~9.3 --ignore-platform-reqs + - cd tests/PHPUnit + - $PIWIK_ROOT_DIR/tests/travis/travis.sh dist: bionic @@ -76,7 +84,7 @@ install: - '[ -d ./tests/travis/.git ] || sh -c "rm -rf ./tests/travis && git clone https://github.com/matomo-org/travis-scripts.git ./tests/travis"' - cd ./tests/travis ; git checkout master ; cd ../.. - - 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" + - 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" - '[[ "$TRAVIS_JOB_NUMBER" != *.1 || "$TRAVIS_PULL_REQUEST" != "false" ]] || ./tests/travis/autoupdate_travis_yml.sh' - ./tests/travis/checkout_test_against_branch.sh