Changeset 48957 for trunk/.travis.yml
- Timestamp:
- 09/07/2020 07:21:26 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.travis.yml
r48458 r48957 52 52 - env: LOCAL_PHP=5.6-fpm WP_TRAVISCI=test:php 53 53 name: "PHPUnit Tests: PHP 5.6" 54 - env: LOCAL_PHP=8.0-fpm WP_TRAVISCI=test:php54 - env: LOCAL_PHP=8.0-fpm COMPOSER_INSTALL=true WP_TRAVISCI=test:php 55 55 name: "PHPUnit Tests: PHP 8.0" 56 script: 57 # The PHPUnit 7.x phar is not compatible with PHP 8 and won't be updated, 58 # as PHPUnit 7 is no longer supported, so run the Composer-installed PHPUnit instead. 59 - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist 60 - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group ajax 61 - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c tests/phpunit/multisite.xml 62 - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c tests/phpunit/multisite.xml --group ms-files 63 - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group external-http 64 - docker-compose run --rm phpunit php ./vendor/bin/phpunit --verbose -c phpunit.xml.dist --group restapi-jsclient 65 # __fakegroup__ is excluded to force PHPUnit to ignore the <exclude> settings in phpunit.xml.dist. 66 - LOCAL_PHP_XDEBUG=true docker-compose run --rm phpunit phpunit -v --group xdebug --exclude-group __fakegroup__ 67 56 68 allow_failures: 57 - env: LOCAL_PHP=8.0-fpm WP_TRAVISCI=test:php69 - env: LOCAL_PHP=8.0-fpm COMPOSER_INSTALL=true WP_TRAVISCI=test:php 58 70 fast_finish: true 59 71 … … 71 83 before_script: 72 84 - | 73 if [[ "$COMPOSER_INSTALL" == "true" ]]; then85 if [[ "$COMPOSER_INSTALL" == "true" && ${LOCAL_PHP:0:3} != "8.0" ]]; then 74 86 docker-compose run --rm php composer --version 75 87 docker-compose run --rm php composer install 88 elif [[ "$COMPOSER_INSTALL" == "true" && ${LOCAL_PHP:0:3} == "8.0" ]]; then 89 docker-compose run --rm php composer --version 90 docker-compose run --rm php composer install --ignore-platform-reqs 76 91 fi 77 92 - npm --version … … 89 104 docker-compose run --rm php php --version 90 105 docker-compose run --rm php php -m 106 fi 107 - | 108 if [[ ${LOCAL_PHP:0:3} == "8.0" ]]; then 109 docker-compose run --rm phpunit php ./vendor/bin/phpunit --version 110 elif [[ "$WP_TRAVISCI" == "test:e2e" ]] || [[ "$WP_TRAVISCI" == "test:php" ]]; then 91 111 docker-compose run --rm phpunit phpunit --version 92 112 fi
Note: See TracChangeset
for help on using the changeset viewer.