Skip to content

Commit fd4f30e

Browse files
committed
CI extended to work with Lerna
1 parent f211301 commit fd4f30e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,17 @@ cache:
2424

2525
override:
2626
# use the new "ci" command for fastest installs on CI
27-
- npm ci
28-
- npm run cy:verify
27+
- npm install
28+
- npm run all:deps-ci
29+
- npm run all:cy:verify
2930

3031
before_script:
3132
## we use the '&' ampersand which tells
3233
## travis to run this process in the background
3334
## else it would block execution and hang travis
34-
- docker run -d -p 27017:27017 mongo:4.0
35-
- docker ps -a
36-
- NODE_ENV=test npm start -- --silent &
35+
- npm run all:deps-ci
36+
- NODE_ENV=test npm run all:infra-start -- --silent &
3737

3838
script:
39-
- npm run test:ci
39+
- npm run all:test-ci
4040

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"all:test-e2e": "lerna run --parallel test:e2e",
1313
"all:test-ci": "lerna run --parallel test:ci",
1414
"all:test": "lerna run --parallel test",
15+
"all:deps-ci": "lerna exec npm ci",
1516
"all:deps-install": "lerna exec npm install && lerna exec npm install -- --package-lock-only && lerna bootstrap",
1617
"all:deps-remove": "lerna exec -- rm -rf ./node_modules",
1718
"all:infra-start": "lerna run --parallel start-infra",

0 commit comments

Comments
 (0)