Skip to content

Commit

Permalink
Build Tooling: Split JavaScript tasks to individual jobs (#15229)
Browse files Browse the repository at this point in the history
* Build Tooling: Split JavaScript tasks to individual jobs

* Build Tooling: Reintroduce install script

I thought it redundant. Alas, I was wrong

* Build Tooling: Run packages custom build script in unit tests
  • Loading branch information
aduth authored and gziolo committed May 9, 2019
1 parent 7e0dce0 commit 8e7f37c
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,40 @@ before_install:

jobs:
include:
- name: JS unit tests
env: WP_VERSION=latest
- name: Lint
before_install:
- nvm install --latest-npm
install:
- npm ci
script:
- npm run build
- npm run lint

- name: Build artifacts
before_install:
- nvm install --latest-npm
install:
- npm ci
script:
- npm run check-local-changes

- name: License compatibility
before_install:
- nvm install --latest-npm
install:
- npm ci
script:
- npm run check-licenses

- name: JavaScript unit tests
before_install:
- nvm install --latest-npm
install:
- npm ci
script:
# It's not necessary to run the full build, since Jest can interpret
# source files with `babel-jest`. Some packages have their own custom
# build tasks, however. These must be run.
- npx lerna run build
- npm run test-unit -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache"

- name: PHP unit tests (Docker)
Expand Down

0 comments on commit 8e7f37c

Please sign in to comment.