Skip to content

Commit

Permalink
CI: Run everything in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Oct 26, 2017
1 parent b588450 commit 1b444cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,10 @@ before_install:

jobs:
include:
- stage: lint
- stage: unit
php: 5.6
script: composer install && ./vendor/bin/phpcs

- stage: lint
script:
- npm install || exit 1
- npm run lint || exit 1

- stage: unit
script:
- npm install || exit 1
Expand Down Expand Up @@ -59,7 +54,6 @@ jobs:
- ./bin/run-wp-unit-tests.sh

stages:
- lint
- unit

before_deploy:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
"lint": "eslint .",
"dev": "cross-env BABEL_ENV=default webpack --watch",
"test": "npm run lint && npm run test-unit",
"ci": "concurrently \"npm run build\" \"npm run test-unit:coverage-ci\"",
"ci": "concurrently \"npm run lint && npm run build\" \"npm run test-unit:coverage-ci\"",
"fixtures:clean": "rimraf \"blocks/test/fixtures/*.+(json|serialized.html)\"",
"fixtures:server-attributes": "./bin/get-server-block-attributes.php > blocks/test/server-attributes.json",
"fixtures:generate": "npm run fixtures:server-attributes && cross-env GENERATE_MISSING_FIXTURES=y npm run test-unit",
Expand Down

0 comments on commit 1b444cb

Please sign in to comment.