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

Commit

Permalink
Merge pull request #63 from onefastsnail/docker-tests
Browse files Browse the repository at this point in the history
Closes #59 by adding a docker-compose file to spin up a container fr…
  • Loading branch information
Matt Bernier authored Nov 22, 2017
2 parents 972e89d + 273a5ab commit 758241f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ node examples/example
=======
[Library Usage Documentation](https://github.com/sendgrid/nodejs-http-client/blob/master/USAGE.md)

# Tests

Tests can be run through a [Docker](https://www.docker.com) container which is defined in the [docker-compose.yml](docker-compose.yml) file.

To run the tests, simply run `docker-compose up`.

<a name="roadmap"></a>
# Roadmap

Expand Down
11 changes: 11 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: "3"
services:

node-test:
image: "node:4.5.0"
working_dir: /srv/www
environment:
- NODE_ENV=production
volumes:
- ./:/srv/www
command: "npm run test"

0 comments on commit 758241f

Please sign in to comment.