Commit 8054d597 authored by Bruce Flynn's avatar Bruce Flynn

move ci testing docker config to tests dir

parent 8fc87c2b
Pipeline #2687 failed with stages
in 2 minutes and 21 seconds
variables:
DOCKER_CMD: docker-compose -p amrc_aws
DOCKER_CMD: docker-compose -p amrc_aws -f tests/docker-compose.yaml
stages:
- build
- test
- deploy
build:
stage: build
script:
- ${DOCKER_CMD} build app
- ${DOCKER_CMD} build app
test:
stage: test
before_script:
- ${DOCKER_CMD} up -d db
- sleep 5
- ${DOCKER_CMD} up -d db
- sleep 10
script:
- ${DOCKER_CMD} run --rm app py.test -v
- ${DOCKER_CMD} run --rm app py.test -xv
after_script:
- ${DOCKER_CMD} down --remove-orphan
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment