1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-12-14 06:19:21 +00:00

TESTS: rewrite tests using pytest and docker-compose

Experimentation to see if it is worth the effort
This commit is contained in:
Thomas LEVEIL
2016-12-10 00:53:23 +01:00
parent 985c46d8b5
commit 197d793a25
50 changed files with 1716 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ services:
env:
global:
- DOCKER_VERSION=1.12.3-0~trusty
- DOCKER_COMPOSE_VERSION=1.9.0
before_install:
# list docker-engine versions
@@ -14,15 +15,28 @@ before_install:
- sudo apt-get -o Dpkg::Options::="--force-confnew" install -y --force-yes docker-engine=${DOCKER_VERSION}
- docker version
- docker info
# install docker-compose
- sudo rm /usr/local/bin/docker-compose ||true
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin/docker-compose
- docker-compose --version
# install bats
- sudo add-apt-repository ppa:duggan/bats --yes
- sudo apt-get update -qq
- sudo apt-get install -qq bats
# prepare docker images
- make update-dependencies
matrix:
include:
- env: TEST_ID=test-debian
- env: TEST_ID=test-alpine
- env: TEST_ID=test2-debian
- env: TEST_ID=test2-alpine
allow_failures:
- env: TEST_ID=test2-debian
- env: TEST_ID=test2-alpine
script:
- make $TEST_ID