Skip to content

Commit

Permalink
test: add test-docker rule (#779)
Browse files Browse the repository at this point in the history
* test: add test-docker rule
  • Loading branch information
Bilal Boussayoud authored Aug 11, 2022
1 parent c7d5f33 commit c3c3941
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
FROM node:8
FROM node:12.17

RUN mkdir /twilio
WORKDIR /twilio

ENV NODE_PATH /usr/local/lib/node_modules

COPY lib ./lib
COPY spec ./spec
COPY examples ./examples
COPY index.js .
COPY package* ./

RUN npm install . -g
RUN npm install . --include=dev
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: test-install install test docs clean
.PHONY: test-install install test test-docker docs clean

test-install:
npm install --only=dev
Expand All @@ -11,6 +11,10 @@ install:
test:
npm test

test-docker:
docker build -t twilio/twilio-node .
docker run twilio/twilio-node npm run ci

docs:
npm run jsdoc

Expand Down

0 comments on commit c3c3941

Please sign in to comment.