Skip to content
This repository was archived by the owner on Aug 20, 2020. It is now read-only.

Commit 758241f

Browse files
author
Matt Bernier
authored
Merge pull request #63 from onefastsnail/docker-tests
Closes #59 by adding a docker-compose file to spin up a container fr…
2 parents 972e89d + 273a5ab commit 758241f

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ node examples/example
118118
=======
119119
[Library Usage Documentation](https://github.com/sendgrid/nodejs-http-client/blob/master/USAGE.md)
120120

121+
# Tests
122+
123+
Tests can be run through a [Docker](https://www.docker.com) container which is defined in the [docker-compose.yml](docker-compose.yml) file.
124+
125+
To run the tests, simply run `docker-compose up`.
126+
121127
<a name="roadmap"></a>
122128
# Roadmap
123129

docker-compose.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: "3"
2+
services:
3+
4+
node-test:
5+
image: "node:4.5.0"
6+
working_dir: /srv/www
7+
environment:
8+
- NODE_ENV=production
9+
volumes:
10+
- ./:/srv/www
11+
command: "npm run test"

0 commit comments

Comments
 (0)