Ticket #51853: 51853.diff
File 51853.diff, 1.5 KB (added by , 4 years ago) |
---|
-
.travis.yml
29 29 30 30 jobs: 31 31 include: 32 - env: WP_TRAVISCI=test:e2e LOCAL_PHPUNIT=latest PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=33 name: E2E Tests34 32 - env: WP_TRAVISCI=lint:php COMPOSER_INSTALL=true NPM_INSTALL=false WP_INSTALL=false 35 33 name: PHP Linting 36 34 - env: WP_TRAVISCI=test:compat COMPOSER_INSTALL=true NPM_INSTALL=false WP_INSTALL=false … … 98 96 npm ci 99 97 fi 100 98 - | 101 if [[ "$WP_TRAVISCI" == "test: e2e" ]] || [[ "$WP_TRAVISCI" == "test:php" ]]; then99 if [[ "$WP_TRAVISCI" == "test:php" ]]; then 102 100 npm run env:start 103 101 npm run build 104 102 docker-compose run --rm mysql mysql --version … … 108 106 - | 109 107 if [[ ${LOCAL_PHP:0:3} == "8.0" ]]; then 110 108 docker-compose run --rm phpunit php ./vendor/bin/phpunit --version 111 elif [[ "$WP_TRAVISCI" == "test: e2e" ]] || [[ "$WP_TRAVISCI" == "test:php" ]]; then109 elif [[ "$WP_TRAVISCI" == "test:php" ]]; then 112 110 docker-compose run --rm phpunit phpunit --version 113 111 fi 114 112 - | … … 133 131 134 132 script: 135 133 - | 136 if [[ "$WP_TRAVISCI" == "test:e2e" ]]; then 137 npm run test:e2e 138 elif [[ "$WP_TRAVISCI" == "test:php" ]]; then 134 if [[ "$WP_TRAVISCI" == "test:php" ]]; then 139 135 npm run test:php -- --verbose -c phpunit.xml.dist && 140 136 npm run test:php -- --verbose -c phpunit.xml.dist --group ajax && 141 137 npm run test:php -- --verbose -c tests/phpunit/multisite.xml &&