Skip to content

Commit 8e7f37c

Browse files
aduthgziolo
authored andcommitted
Build Tooling: Split JavaScript tasks to individual jobs (#15229)
* 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
1 parent 7e0dce0 commit 8e7f37c

1 file changed

Lines changed: 26 additions & 3 deletions

File tree

.travis.yml

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,40 @@ before_install:
2727

2828
jobs:
2929
include:
30-
- name: JS unit tests
31-
env: WP_VERSION=latest
30+
- name: Lint
3231
before_install:
3332
- nvm install --latest-npm
3433
install:
3534
- npm ci
3635
script:
37-
- npm run build
3836
- npm run lint
37+
38+
- name: Build artifacts
39+
before_install:
40+
- nvm install --latest-npm
41+
install:
42+
- npm ci
43+
script:
3944
- npm run check-local-changes
45+
46+
- name: License compatibility
47+
before_install:
48+
- nvm install --latest-npm
49+
install:
50+
- npm ci
51+
script:
4052
- npm run check-licenses
53+
54+
- name: JavaScript unit tests
55+
before_install:
56+
- nvm install --latest-npm
57+
install:
58+
- npm ci
59+
script:
60+
# It's not necessary to run the full build, since Jest can interpret
61+
# source files with `babel-jest`. Some packages have their own custom
62+
# build tasks, however. These must be run.
63+
- npx lerna run build
4164
- npm run test-unit -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache"
4265

4366
- name: PHP unit tests (Docker)

0 commit comments

Comments
 (0)