Make WordPress Core

Ticket #50337: 50337.diff

File 50337.diff, 1.4 KB (added by peterwilsoncc, 4 years ago)
  • .travis.yml

    diff --git a/.travis.yml b/.travis.yml
    index 9a07678476..e5e66a4165 100644
    a b jobs: 
    3535    name: PHP Linting
    3636  - env: WP_TRAVISCI=travis:js WP_INSTALL=false PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
    3737    name: JS Tests
     38  - env: WP_TRAVISCI=travis:gitstatus WP_INSTALL=false PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=
     39    name: Build updated
    3840  - env: WP_TRAVISCI=test:compat COMPOSER_INSTALL=true NPM_INSTALL=false WP_INSTALL=false
    3941    name: "PHP Compatibility Check"
    4042  - env: LOCAL_PHP=7.4-fpm WP_TRAVISCI=test:php
    before_script: 
    8284  if [[ "$NPM_INSTALL" == "true" ]]; then
    8385    npm ci
    8486  fi
     87- |
     88  if [[ "$WP_TRAVISCI" == "travis:gitstatus" ]]; then
     89    npm run build:dev
     90  fi
    8591- |
    8692  if [[ "$WP_TRAVISCI" == "test:e2e" ]] || [[ "$WP_TRAVISCI" == "test:php" ]]; then
    8793    npm run env:start
    script: 
    129135      docker-compose run --rm php composer lint tests
    130136    elif [[ "$WP_TRAVISCI" == "test:compat" ]]; then
    131137      docker-compose run --rm php composer compat
     138    elif [[ "$WP_TRAVISCI" == "travis:gitstatus" ]]; then
     139      if [ -z "$(git status --porcelain -- ':(exclude)package-lock.json')" ]; then
     140        echo "Built files are up to date."
     141        exit;
     142      fi
     143      echo "Built files have not been committed."
     144      git status -- ':(exclude)package-lock.json'
     145      exit 1
    132146    else
    133147      npm run grunt $WP_TRAVISCI
    134148    fi