Skip to content

Commit

Permalink
build: fix travis script to allow tsc -b
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondfeng committed Apr 20, 2020
1 parent 0f0a453 commit e90fad4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ matrix:
- mongodb
script:
- npm run postinstall -- --scope "@loopback/test-repository-mongodb" --include-dependencies
- npm run build -- --scope "@loopback/test-repository-mongodb" --include-dependencies
# Now `npm run build` at root level does not delegate to `lerna`
# `tsc -b` also deals with dependencies by itself
- npx lerna run build --scope "@loopback/test-repository-mongodb"
- cd acceptance/repository-mongodb && npm run mocha
- node_js: "12"
os: linux
Expand All @@ -69,7 +71,7 @@ matrix:
- mysql -e "GRANT SUPER ON *.* TO 'test'@'localhost' IDENTIFIED BY 'test';FLUSH PRIVILEGES;"
script:
- npm run postinstall -- --scope "@loopback/test-repository-mysql" --include-dependencies
- npm run build -- --scope "@loopback/test-repository-mysql" --include-dependencies
- npx lerna run build --scope "@loopback/test-repository-mysql"
- cd acceptance/repository-mysql && npm run mocha
- node_js: "12"
os: linux
Expand All @@ -80,7 +82,7 @@ matrix:
- postgresql
script:
- npm run postinstall -- --scope "@loopback/test-repository-postgresql" --include-dependencies
- npm run build -- --scope "@loopback/test-repository-postgresql" --include-dependencies
- npx lerna run build --scope "@loopback/test-repository-postgresql"
- psql -U postgres -a -f acceptance/repository-postgresql/test/schema.sql
- cd acceptance/repository-postgresql && npm run mocha
- node_js: "12"
Expand All @@ -90,7 +92,7 @@ matrix:
script:
# set up docker image and create admin for cloudant.
- npm run postinstall -- --scope "@loopback/test-repository-cloudant" --include-dependencies
- npm run build -- --scope "@loopback/test-repository-cloudant" --include-dependencies
- npx lerna run build --scope "@loopback/test-repository-cloudant"
- cd acceptance/repository-cloudant && sh setup.sh
- npm test
- node_js: "12"
Expand All @@ -101,7 +103,7 @@ matrix:
- docker
script:
- npm run postinstall -- --scope "@loopback/test-extension-logging-fluentd" --include-dependencies
- npm run build -- --scope "@loopback/test-extension-logging-fluentd" --include-dependencies
- npx lerna run build --scope "@loopback/test-extension-logging-fluentd"
- cd acceptance/extension-logging-fluentd && npm run mocha

branches:
Expand Down

0 comments on commit e90fad4

Please sign in to comment.