From a0e6e95e6f4496eab0ccc0243d4ff41ac91852c3 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Fri, 8 Mar 2019 20:53:39 -0500 Subject: [PATCH 1/2] Plugin: Remove postinstall step --- .travis.yml | 1 + package.json | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8a464d766d9739..134cd07c92bd42 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,6 +36,7 @@ jobs: script: - npm run lint - npm run check-local-changes + - npm run check-licenses - npm run test-unit -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache" - name: PHP unit tests (Docker) diff --git a/package.json b/package.json index 0700d64f3141b9..1f0e798ff37f1d 100644 --- a/package.json +++ b/package.json @@ -175,7 +175,6 @@ "lint-css": "wp-scripts lint-style '**/*.scss'", "lint-css:fix": "npm run lint-css -- --fix", "package-plugin": "./bin/build-plugin-zip.sh", - "postinstall": "npm run check-licenses && npm run build:packages", "pot-to-php": "./bin/pot-to-php.js", "precommit": "lint-staged", "publish:check": "npm run build:packages && lerna updated", From c3da543c60e5bcd73c062ce292bde97a8b73bc9d Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Wed, 6 Mar 2019 11:25:27 -0500 Subject: [PATCH 2/2] Framework: Run build for JS unit tests Assumed previously relied on postinstall --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 134cd07c92bd42..7b87e251a25258 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,6 +34,7 @@ jobs: install: - npm ci script: + - npm run build - npm run lint - npm run check-local-changes - npm run check-licenses