-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: updating travis script for mono-repo
updates the docker compose file and travis config
- Loading branch information
Eric Satterwhite
committed
Apr 26, 2020
1 parent
36eb519
commit 477fc33
Showing
42 changed files
with
2,574 additions
and
357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,8 @@ ratings: | |
exclude_paths: | ||
- test/ | ||
- docs/ | ||
- assets/ | ||
- compose/ | ||
- scripts/ | ||
- tutorials/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,30 @@ | ||
sudo: required | ||
os: linux | ||
dist: xenial | ||
services: | ||
- docker | ||
|
||
language: node_js | ||
script: npm test | ||
before_script: | ||
- wget https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 && mv test-reporter-latest-linux-amd64 cc-test-reporter | ||
- chmod +x ./cc-test-reporter | ||
- ./cc-test-reporter before-build | ||
- docker-compose -f compose/nats.yml up -d | ||
- mkdir -p coverage | ||
script: npm run test:coverage | ||
after_script: | ||
- if [ -n "${CODECLIMATE_REPO_TOKEN}" ]; then npm run coverage; fi | ||
before_install: | ||
- docker pull nats:latest | ||
- docker run --name=nats -p 4222:4222 -d nats:latest | ||
- docker ps -a | ||
- npm run nyc report --reporter=text-lcov > coverage/lcov.info | ||
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT | ||
- docker-compose -f compose/nats.yml down | ||
install: | ||
- npm ci | ||
- npm run lerna bootstrap | ||
git: | ||
depth: 3 | ||
|
||
node_js: | ||
- "8" | ||
- "9" | ||
- "10" | ||
- "12" | ||
env: | ||
- NODE_ENV=test | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.