diff --git a/.travis.yml b/.travis.yml
index 9a07678476..e5e66a4165 100644
a
|
b
|
jobs: |
35 | 35 | name: PHP Linting |
36 | 36 | - env: WP_TRAVISCI=travis:js WP_INSTALL=false PUPPETEER_SKIP_CHROMIUM_DOWNLOAD= |
37 | 37 | name: JS Tests |
| 38 | - env: WP_TRAVISCI=travis:gitstatus WP_INSTALL=false PUPPETEER_SKIP_CHROMIUM_DOWNLOAD= |
| 39 | name: Build updated |
38 | 40 | - env: WP_TRAVISCI=test:compat COMPOSER_INSTALL=true NPM_INSTALL=false WP_INSTALL=false |
39 | 41 | name: "PHP Compatibility Check" |
40 | 42 | - env: LOCAL_PHP=7.4-fpm WP_TRAVISCI=test:php |
… |
… |
before_script: |
82 | 84 | if [[ "$NPM_INSTALL" == "true" ]]; then |
83 | 85 | npm ci |
84 | 86 | fi |
| 87 | - | |
| 88 | if [[ "$WP_TRAVISCI" == "travis:gitstatus" ]]; then |
| 89 | npm run build:dev |
| 90 | fi |
85 | 91 | - | |
86 | 92 | if [[ "$WP_TRAVISCI" == "test:e2e" ]] || [[ "$WP_TRAVISCI" == "test:php" ]]; then |
87 | 93 | npm run env:start |
… |
… |
script: |
129 | 135 | docker-compose run --rm php composer lint tests |
130 | 136 | elif [[ "$WP_TRAVISCI" == "test:compat" ]]; then |
131 | 137 | 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 |
132 | 146 | else |
133 | 147 | npm run grunt $WP_TRAVISCI |
134 | 148 | fi |