Changeset 45799
- Timestamp:
- 08/14/2019 11:11:39 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/.travis.yml
r45783 r45799 14 14 - $HOME/.npm 15 15 - vendor 16 - $HOME/.composer/cache17 16 18 17 env: 19 18 global: 20 19 - LOCAL_DIR: build 20 - COMPOSER_INSTALL: false 21 - NPM_INSTALL: true 22 - WP_INSTALL: true 21 23 22 24 matrix: … … 24 26 - env: WP_TRAVISCI=test:e2e 25 27 name: E2E Tests 26 - env: WP_TRAVISCI= travis:phpcs28 - env: WP_TRAVISCI=lint:php COMPOSER_INSTALL=true NPM_INSTALL=false WP_INSTALL=false 27 29 name: PHP Linting 28 - env: WP_TRAVISCI=travis:js 30 - env: WP_TRAVISCI=travis:js WP_INSTALL=false 29 31 name: JS Tests 30 32 - env: LOCAL_PHP=7.3-fpm WP_TRAVISCI=test:php … … 62 64 before_script: 63 65 - | 64 # Remove Xdebug for a huge performance increase: 65 if [ -f ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini ]; then 66 phpenv config-rm xdebug.ini 67 else 68 echo "xdebug.ini does not exist" 69 fi 70 - | 71 # We only need to run composer install on the PHP coding standards job. 72 if [[ "$WP_TRAVISCI" == "travis:phpcs" ]]; then 73 composer --version 74 travis_retry composer install 66 if [[ "$COMPOSER_INSTALL" == "true" ]]; then 67 docker-compose run --rm php composer --version 68 docker-compose run --rm php composer install 75 69 fi 76 70 - npm --version 77 71 - node --version 78 72 - nvm install 10.13.0 79 - npm install 80 - npm prune 73 - | 74 if [[ "$NPM_INSTALL" == "true" ]]; then 75 npm ci 76 fi 81 77 - | 82 78 if [[ "$WP_TRAVISCI" == "test:e2e" ]] || [[ "$WP_TRAVISCI" == "test:php" ]]; then … … 95 91 fi 96 92 - | 97 if [[ "$WP_ TRAVISCI" == "test:e2e" ]] || [[ "$WP_TRAVISCI" == "test:php" ]]; then93 if [[ "$WP_INSTALL" == "true" ]]; then 98 94 # Run the install process after memcached has started. 99 95 npm run env:install … … 117 113 npm run test:php -- --verbose -c phpunit.xml.dist --group external-http && 118 114 npm run test:php -- --verbose -c phpunit.xml.dist --group restapi-jsclient 115 elif [[ "$WP_TRAVISCI" == "lint:php" ]]; then 116 docker-compose run --rm php composer format && 117 docker-compose run --rm php composer lint:errors && 118 docker-compose run --rm php composer lint tests 119 119 else 120 120 npm run grunt $WP_TRAVISCI
Note: See TracChangeset
for help on using the changeset viewer.