Skip to content

Commit

Permalink
feat: set store uri when launch (#16)
Browse files Browse the repository at this point in the history
* feat: set store uri when launch

* use semantic-release template

* add test timeout
  • Loading branch information
yuichi10 authored and d2lam committed Jan 10, 2018
1 parent 47386b5 commit de32f7b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/docker-compose.yml.tim
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ services:
- "/bin/sh"
- "-c"
- |
/opt/sd/launch --api-uri {{api_uri}} --emitter /opt/sd/emitter {{build_id}} &
/opt/sd/launch --api-uri {{api_uri}} --store-uri {{store_uri}} --emitter /opt/sd/emitter {{build_id}} &
/opt/sd/logservice --emitter /opt/sd/emitter --api-uri {{store_uri}} --build {{build_id}} &
wait $$(jobs -p)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"pretest": "eslint .",
"test": "jenkins-mocha --recursive",
"test": "jenkins-mocha --recursive --timeout 15000",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
Expand Down
4 changes: 1 addition & 3 deletions screwdriver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ jobs:
- test: npm test

publish:
steps:
- install: npm install semantic-release
- publish: npm run semantic-release
template: screwdriver-cd/semantic-release
secrets:
# Publishing to NPM
- NPM_TOKEN
Expand Down
3 changes: 2 additions & 1 deletion test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ services:
- "/bin/sh"
- "-c"
- |
/opt/sd/launch --api-uri {{api_uri}} --emitter /opt/sd/emitter {{build_id}} &
/opt/sd/launch --api-uri {{api_uri}} --store-uri {{store_uri}} \
--emitter /opt/sd/emitter {{build_id}} &
/opt/sd/logservice --api-uri {{store_uri}} --build {{build_id}} &
wait $(jobs -p)
`;
Expand Down

0 comments on commit de32f7b

Please sign in to comment.