Skip to content

Commit

Permalink
test files
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Lundell committed Apr 11, 2018
1 parent b29d1fc commit 42481b2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Dockerfile-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM node:8.11

WORKDIR /app

COPY lib ./lib
COPY test ./test

COPY package-lock.json package.json ./

RUN npm install

CMD npm test
16 changes: 16 additions & 0 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: '3'
services:
redis:
image: 'redis:3'
ports:
- '6379:6379'
sut:
build:
context: .
dockerfile: Dockerfile-test
depends_on:
- redis
links:
- redis
environment:
- redis__host=redis
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": {
"start": "node lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "mocha test --recursive"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 42481b2

Please sign in to comment.