mirror of https://github.com/thumbsup/thumbsup
Run full integration tests inside Docker. Travis runs unit + integration.
parent
9a2da3e5ea
commit
208f0f0212
@ -1 +1,2 @@
|
|||||||
node_modules
|
node_modules
|
||||||
|
test-integration/output-actual
|
||||||
|
@ -1,5 +1,19 @@
|
|||||||
|
# Run unit tests on several versions of Node
|
||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- '6'
|
- '6'
|
||||||
- '8'
|
- '8'
|
||||||
script: scripts/cibuild
|
|
||||||
|
# Also require docker for the integration tests
|
||||||
|
sudo: required
|
||||||
|
services:
|
||||||
|
- docker
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
include:
|
||||||
|
# After unit tests pass on all version of Node
|
||||||
|
# run the integration tests
|
||||||
|
- stage: Integration tests
|
||||||
|
script:
|
||||||
|
- docker pull thumbsupgallery/build:alpine
|
||||||
|
- docker build .
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
# Node.js runtime
|
# Node.js + build depdencies + runtime dependencies
|
||||||
FROM node:8-alpine
|
FROM thumbsupgallery/build:alpine
|
||||||
|
|
||||||
# Cache all the binary dependencies first
|
# Install and cache dependencies
|
||||||
RUN apk add --update ffmpeg graphicsmagick exiftool
|
COPY package.json /app
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
# Install thumbsup globally
|
# Run the tests
|
||||||
ARG THUMBSUP_VERSION=2.x.x
|
COPY . /app
|
||||||
RUN npm install -g thumbsup@${THUMBSUP_VERSION}
|
RUN scripts/cibuild
|
||||||
|
|
||||||
# Default command is thumbsup itself, so we can run
|
|
||||||
# > docker run thumbsupgallery/thumbsup --input [...] --output [...]
|
|
||||||
CMD ["thumbsup"]
|
|
||||||
|
Loading…
Reference in New Issue