2017-06-13 03:55:12 +00:00
|
|
|
# Generated from .gitlab-ci.jsonnet
|
|
|
|
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
2017-05-02 14:08:24 +00:00
|
|
|
---
|
2017-06-13 03:55:12 +00:00
|
|
|
container-base-build:
|
2017-05-02 14:08:24 +00:00
|
|
|
before_script:
|
2017-06-13 03:55:12 +00:00
|
|
|
- docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io
|
|
|
|
image: docker:git
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- tags
|
|
|
|
script:
|
|
|
|
- docker build --cache-from quay.io/quay/quay-base:latest -t quay.io/quay/quay-base:latest -f quay-base.dockerfile .
|
|
|
|
- docker push quay.io/quay/quay-base:latest
|
|
|
|
stage: docker_base
|
2017-05-30 21:06:09 +00:00
|
|
|
tags:
|
2017-06-26 13:21:59 +00:00
|
|
|
- kubernetes
|
2017-06-13 03:55:12 +00:00
|
|
|
variables:
|
2017-06-26 13:21:59 +00:00
|
|
|
DOCKER_DRIVER: overlay
|
|
|
|
DOCKER_HOST: tcp://docker-host.gitlab-runner.svc.cluster.local:2375
|
2017-05-30 21:06:09 +00:00
|
|
|
container-build:
|
2017-06-13 03:55:12 +00:00
|
|
|
before_script:
|
|
|
|
- docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io
|
|
|
|
image: docker:git
|
2017-05-30 21:06:09 +00:00
|
|
|
script:
|
2017-06-13 03:55:12 +00:00
|
|
|
- docker build -t quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG} -f quay.dockerfile .
|
|
|
|
- docker push quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
|
|
|
|
stage: docker_build
|
|
|
|
tags:
|
2017-06-26 13:21:59 +00:00
|
|
|
- kubernetes
|
2017-05-30 21:06:09 +00:00
|
|
|
variables:
|
2017-06-26 13:21:59 +00:00
|
|
|
DOCKER_DRIVER: overlay
|
|
|
|
DOCKER_HOST: tcp://docker-host.gitlab-runner.svc.cluster.local:2375
|
2017-06-13 03:55:12 +00:00
|
|
|
container-release:
|
2017-05-30 21:06:09 +00:00
|
|
|
before_script:
|
2017-06-13 03:55:12 +00:00
|
|
|
- docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io
|
|
|
|
image: docker:git
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- tags
|
2017-05-02 14:08:24 +00:00
|
|
|
script:
|
2017-06-13 03:55:12 +00:00
|
|
|
- docker pull quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
|
2017-06-20 09:53:39 +00:00
|
|
|
- docker tag quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG} quay.io/quay/quay:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHA}
|
|
|
|
- docker push quay.io/quay/quay:${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHA}
|
2017-06-13 03:55:12 +00:00
|
|
|
stage: docker_release
|
|
|
|
tags:
|
2017-06-26 13:21:59 +00:00
|
|
|
- kubernetes
|
2017-06-13 03:55:12 +00:00
|
|
|
variables:
|
2017-06-26 13:21:59 +00:00
|
|
|
DOCKER_DRIVER: overlay
|
|
|
|
DOCKER_HOST: tcp://docker-host.gitlab-runner.svc.cluster.local:2375
|
2017-05-02 14:08:24 +00:00
|
|
|
karma-tests:
|
2017-06-13 03:55:12 +00:00
|
|
|
before_script:
|
|
|
|
- cd /
|
|
|
|
- source venv/bin/activate
|
|
|
|
image: quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
|
2017-05-02 14:08:24 +00:00
|
|
|
script:
|
2017-06-13 03:55:12 +00:00
|
|
|
- curl -Ss https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
|
|
|
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list
|
|
|
|
- apt-get update -yqqq
|
|
|
|
- apt-get install -y google-chrome-stable
|
|
|
|
- yarn test
|
|
|
|
stage: unit_tests
|
|
|
|
tags:
|
|
|
|
- kubernetes
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
PYTHONPATH: .
|
2017-02-01 23:17:25 +00:00
|
|
|
QUAYDIR: /quay-registry
|
2017-06-13 03:55:12 +00:00
|
|
|
TEST: 'true'
|
|
|
|
mysql:
|
|
|
|
before_script:
|
|
|
|
- cd /
|
|
|
|
- source venv/bin/activate
|
|
|
|
image: quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
|
2017-05-02 14:08:24 +00:00
|
|
|
script:
|
2017-06-13 03:55:12 +00:00
|
|
|
- sleep 30
|
|
|
|
- alembic upgrade head
|
|
|
|
- PYTHONPATH="." TEST="true" py.test --timeout=7200 --verbose --show-count ./ --color=no --ignore=endpoints/appr/test/ -x
|
|
|
|
services:
|
|
|
|
- mysql:latest
|
|
|
|
stage: unit_tests
|
|
|
|
tags:
|
|
|
|
- kubernetes
|
2017-05-02 14:08:24 +00:00
|
|
|
variables:
|
2017-06-13 03:55:12 +00:00
|
|
|
GIT_STRATEGY: none
|
|
|
|
MYSQL_DATABASE: quay
|
|
|
|
MYSQL_PASSWORD: quay
|
|
|
|
MYSQL_ROOT_PASSWORD: quay
|
|
|
|
MYSQL_USER: quay
|
|
|
|
PYTHONPATH: .
|
2017-02-01 23:17:25 +00:00
|
|
|
QUAYDIR: /quay-registry
|
2017-05-02 14:08:24 +00:00
|
|
|
SKIP_DB_SCHEMA: 'true'
|
2017-06-13 03:55:12 +00:00
|
|
|
TEST: 'true'
|
|
|
|
TEST_DATABASE_URI: mysql+pymysql://quay:quay@localhost/quay
|
|
|
|
postgres:
|
|
|
|
before_script:
|
|
|
|
- cd /
|
|
|
|
- source venv/bin/activate
|
|
|
|
image: quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
|
|
|
|
script:
|
|
|
|
- sleep 30
|
|
|
|
- alembic upgrade head
|
|
|
|
- PYTHONPATH="." TEST="true" py.test --timeout=7200 --verbose --show-count ./ --color=no --ignore=endpoints/appr/test/ -x
|
|
|
|
services:
|
|
|
|
- postgres:9.6
|
|
|
|
stage: unit_tests
|
|
|
|
tags:
|
|
|
|
- kubernetes
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
2017-05-02 14:08:24 +00:00
|
|
|
POSTGRES_PASSWORD: quay
|
|
|
|
POSTGRES_USER: quay
|
2017-06-13 03:55:12 +00:00
|
|
|
PYTHONPATH: .
|
2017-02-01 23:17:25 +00:00
|
|
|
QUAYDIR: /quay-registry
|
2017-06-13 03:55:12 +00:00
|
|
|
SKIP_DB_SCHEMA: 'true'
|
|
|
|
TEST: 'true'
|
|
|
|
TEST_DATABASE_URI: postgresql://quay:quay@localhost/quay
|
|
|
|
registry-tests:
|
|
|
|
before_script:
|
|
|
|
- cd /
|
|
|
|
- source venv/bin/activate
|
|
|
|
image: quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
|
2017-05-02 14:08:24 +00:00
|
|
|
script:
|
2017-06-13 03:55:12 +00:00
|
|
|
- py.test --timeout=7200 --verbose --show-count ./test/registry_tests.py --color=no -x
|
|
|
|
stage: unit_tests
|
|
|
|
tags:
|
|
|
|
- kubernetes
|
2017-05-02 14:08:24 +00:00
|
|
|
variables:
|
2017-05-30 21:06:09 +00:00
|
|
|
GIT_STRATEGY: none
|
2017-06-13 03:55:12 +00:00
|
|
|
PYTHONPATH: .
|
2017-02-01 23:17:25 +00:00
|
|
|
QUAYDIR: /quay-registry
|
2017-06-13 03:55:12 +00:00
|
|
|
TEST: 'true'
|
|
|
|
stages:
|
|
|
|
- docker_base
|
|
|
|
- docker_build
|
|
|
|
- unit_tests
|
|
|
|
- integration
|
|
|
|
- docker_release
|
|
|
|
- teardown
|
|
|
|
unit-tests:
|
|
|
|
before_script:
|
|
|
|
- cd /
|
|
|
|
- source venv/bin/activate
|
|
|
|
image: quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
|
2017-05-02 14:08:24 +00:00
|
|
|
script:
|
2017-06-13 03:55:12 +00:00
|
|
|
- py.test --timeout=7200 --verbose --show-count ./ --color=no -x
|
|
|
|
stage: unit_tests
|
|
|
|
tags:
|
|
|
|
- kubernetes
|
|
|
|
variables:
|
|
|
|
GIT_STRATEGY: none
|
|
|
|
PYTHONPATH: .
|
2017-02-01 23:17:25 +00:00
|
|
|
QUAYDIR: /quay-registry
|
2017-06-13 03:55:12 +00:00
|
|
|
TEST: 'true'
|
|
|
|
variables:
|
|
|
|
FAILFASTCI_NAMESPACE: quay
|