Skip to content

Commit 1eec357

Browse files
committed
Tests: Run linting and unit tests in separate stages
1 parent 360ba3c commit 1eec357

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ jobs:
6262
php: 5.6
6363
script: composer install && ./vendor/bin/phpcs
6464

65+
- stage: lint
66+
script:
67+
- npm install || exit 1
68+
- npm run lint || exit 1
69+
6570
- stage: unit
6671
script:
6772
- npm install || exit 1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"lint": "eslint .",
127127
"dev": "cross-env BABEL_ENV=default webpack --watch",
128128
"test": "npm run lint && npm run test-unit",
129-
"ci": "concurrently \"npm run lint && npm run build\" \"npm run test-unit:coverage-ci\"",
129+
"ci": "concurrently \"npm run build\" \"npm run test-unit:coverage-ci\"",
130130
"fixtures:clean": "rimraf \"blocks/test/fixtures/*.+(json|serialized.html)\"",
131131
"fixtures:server-attributes": "./bin/get-server-block-attributes.php > blocks/test/server-attributes.json",
132132
"fixtures:generate": "npm run fixtures:server-attributes && cross-env GENERATE_MISSING_FIXTURES=y npm run test-unit",

0 commit comments

Comments
 (0)