-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #293 from plivo/local-docker-enhancement
Local docker enhancement
- Loading branch information
Showing
4 changed files
with
28 additions
and
12 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
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,7 +1,14 @@ | ||
.PHONY: build test | ||
.PHONY: build test run | ||
|
||
build: | ||
docker-compose up --build --remove-orphans | ||
|
||
test: | ||
docker exec -it $$CONTAINER /bin/bash -c "npm install request --no-save && npm test" | ||
@[ "${CONTAINER}" ] && \ | ||
(docker exec -it $$CONTAINER /bin/bash -c "npm install request --no-save && npm test") || \ | ||
(npm install request --no-save && npm test) | ||
|
||
run: | ||
@[ "${CONTAINER}" ] && \ | ||
(docker exec -it $$CONTAINER /bin/bash -c 'cd /usr/src/app/node-sdk-test/ && node test.js') || \ | ||
(cd /usr/src/app/node-sdk-test/ && node test.js) |
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