Add docker-cli e2e tests

This commit is contained in:
Antoine Legrand 2017-07-28 17:13:52 +02:00
parent f3ac04f799
commit 86f418a288
3 changed files with 68 additions and 4 deletions

View file

@ -31,6 +31,7 @@ appr_e2e:
POSTGRES_USER: quay
PYTHONPATH: .
QUAYDIR: /quay-registry
QUAY_OVERRIDE_CONFIG: '{"SERVER_HOSTNAME": "localhost:80"}'
SKIP_DB_SCHEMA: 'true'
TEST: 'true'
TEST_DATABASE_URI: postgresql://quay:quay@localhost/quay
@ -136,6 +137,47 @@ deploy-staging:
variables:
K8S_NAMESPACE: ci-staging
QUAY_DOMAIN: quay-staging.k8s.devtable.com
docker_e2e:
allow_failure: true
before_script: []
image:
name: docker
script:
- sleep 150
- docker login localhost:80 -u devtable -p password
- docker pull nginx
- docker tag nginx localhost:80/devtable/nginx
- docker push localhost:80/devtable/nginx
- sleep 1
- docker pull localhost:80/devtable/nginx
services:
- name: postgres:9.6
- alias: quay
name: quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
- alias: db-init
command:
- /bin/sh
- -c
- sleep 30&& /quay-registry/venv/bin/python initdb.py&& sleep 3600
name: quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
- name: docker:dind
stage: integration
tags:
- kubernetes
variables:
APP_HOST: localhost:80
DB_URI: postgresql://quay:quay@localhost/quay
DOCKER_DRIVER: overlay2
DOCKER_HOST: tcp://localhost:2375
GIT_STRATEGY: none
POSTGRES_PASSWORD: quay
POSTGRES_USER: quay
PYTHONPATH: .
QUAYDIR: /quay-registry
QUAY_OVERRIDE_CONFIG: '{"SERVER_HOSTNAME": "localhost:80"}'
SKIP_DB_SCHEMA: 'true'
TEST: 'true'
TEST_DATABASE_URI: postgresql://quay:quay@localhost/quay
karma-tests:
before_script:
- cd $QUAYDIR
@ -227,7 +269,7 @@ protractor_e2e:
- -c
- sleep 30&& /quay-registry/venv/bin/python initdb.py&& sleep 3600
name: quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
- selenium/standalone-chrome:3.4.0
- name: selenium/standalone-chrome:3.4.0
stage: integration
tags:
- kubernetes
@ -239,6 +281,7 @@ protractor_e2e:
POSTGRES_USER: quay
PYTHONPATH: .
QUAYDIR: /quay-registry
QUAY_OVERRIDE_CONFIG: '{"SERVER_HOSTNAME": "localhost:80"}'
SKIP_DB_SCHEMA: 'true'
TEST: 'true'
TEST_DATABASE_URI: postgresql://quay:quay@localhost/quay
@ -262,8 +305,8 @@ stages:
- docker_base
- docker_build
- deploy_preview
- integration
- tests
- integration
- docker_release
- deploy_staging
- teardown