Add Appr e2e
This commit is contained in:
parent
fc8ba8b84e
commit
7cc39a7c54
2 changed files with 50 additions and 10 deletions
|
@ -7,9 +7,10 @@ local baseJob = (import '.gitlab-ci/base_jobs.libsonnet')(vars);
|
||||||
local stages_list = [
|
local stages_list = [
|
||||||
// gitlab-ci stages
|
// gitlab-ci stages
|
||||||
'docker_base',
|
'docker_base',
|
||||||
'docker_build',
|
|
||||||
'integration',
|
'integration',
|
||||||
|
|
||||||
|
'docker_build',
|
||||||
|
|
||||||
'deploy_preview',
|
'deploy_preview',
|
||||||
'unit_tests',
|
'unit_tests',
|
||||||
'docker_release',
|
'docker_release',
|
||||||
|
@ -109,17 +110,28 @@ local jobs = {
|
||||||
services+: ["selenium/standalone-chrome:3.4.0"],
|
services+: ["selenium/standalone-chrome:3.4.0"],
|
||||||
before_script+: [
|
before_script+: [
|
||||||
"curl -sL https://deb.nodesource.com/setup_8.x | bash -",
|
"curl -sL https://deb.nodesource.com/setup_8.x | bash -",
|
||||||
"apt-get update && apt-get install -y nodejs",
|
"apt-get install -y nodejs",
|
||||||
|
"./node_modules/.bin/webdriver-manager update",
|
||||||
|
"python initdb.py",
|
||||||
],
|
],
|
||||||
script: [
|
script: [
|
||||||
"sleep 60",
|
"sleep 60",
|
||||||
"python initdb.py",
|
|
||||||
"sleep 30",
|
|
||||||
"./node_modules/.bin/webdriver-manager update",
|
|
||||||
"yarn e2e",
|
"yarn e2e",
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'appr_e2e': integration_test {
|
||||||
|
before_script+: [
|
||||||
|
"python initdb.py",
|
||||||
|
"curl -L https://github.com/app-registry/appr/releases/download/v0.6.1/appr-linux-x64 -o /bin/appr",
|
||||||
|
"chmod +x /bin/appr",
|
||||||
|
],
|
||||||
|
script: [
|
||||||
|
"sleep 60",
|
||||||
|
"appr version localhost:80"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
// Unit-tests with real databases
|
// Unit-tests with real databases
|
||||||
local db_stage = { stage: stages.unit_tests },
|
local db_stage = { stage: stages.unit_tests },
|
||||||
local dbname = 'quay',
|
local dbname = 'quay',
|
||||||
|
|
|
@ -1,6 +1,35 @@
|
||||||
# Generated from .gitlab-ci.jsonnet
|
# Generated from .gitlab-ci.jsonnet
|
||||||
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
|
||||||
---
|
---
|
||||||
|
appr_e2e:
|
||||||
|
before_script:
|
||||||
|
- cd $QUAYDIR
|
||||||
|
- source $QUAYDIR/venv/bin/activate
|
||||||
|
- sleep 30
|
||||||
|
- alembic upgrade head
|
||||||
|
- python initdb.py
|
||||||
|
- curl -L https://github.com/app-registry/appr/releases/download/v0.6.1/appr-linux-x64 -o /bin/appr
|
||||||
|
- chmod +x /bin/appr
|
||||||
|
image: quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
|
||||||
|
script:
|
||||||
|
- sleep 60
|
||||||
|
- appr version localhost:80
|
||||||
|
services:
|
||||||
|
- postgres:9.6
|
||||||
|
- quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
|
||||||
|
stage: integration
|
||||||
|
tags:
|
||||||
|
- kubernetes
|
||||||
|
variables:
|
||||||
|
DB_URI: postgresql://quay:quay@localhost/quay
|
||||||
|
GIT_STRATEGY: none
|
||||||
|
POSTGRES_PASSWORD: quay
|
||||||
|
POSTGRES_USER: quay
|
||||||
|
PYTHONPATH: .
|
||||||
|
QUAYDIR: /quay-registry
|
||||||
|
SKIP_DB_SCHEMA: 'true'
|
||||||
|
TEST: 'true'
|
||||||
|
TEST_DATABASE_URI: postgresql://quay:quay@localhost/quay
|
||||||
container-base-build:
|
container-base-build:
|
||||||
before_script:
|
before_script:
|
||||||
- docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io
|
- docker login -u $DOCKER_USER -p $DOCKER_PASS quay.io
|
||||||
|
@ -190,8 +219,8 @@ registry-tests:
|
||||||
TEST: 'true'
|
TEST: 'true'
|
||||||
stages:
|
stages:
|
||||||
- docker_base
|
- docker_base
|
||||||
- docker_build
|
|
||||||
- integration
|
- integration
|
||||||
|
- docker_build
|
||||||
- deploy_preview
|
- deploy_preview
|
||||||
- unit_tests
|
- unit_tests
|
||||||
- docker_release
|
- docker_release
|
||||||
|
@ -249,13 +278,12 @@ yarn_e2e:
|
||||||
- sleep 30
|
- sleep 30
|
||||||
- alembic upgrade head
|
- alembic upgrade head
|
||||||
- curl -sL https://deb.nodesource.com/setup_8.x | bash -
|
- curl -sL https://deb.nodesource.com/setup_8.x | bash -
|
||||||
- apt-get update && apt-get install -y nodejs
|
- apt-get install -y nodejs
|
||||||
|
- ./node_modules/.bin/webdriver-manager update
|
||||||
|
- python initdb.py
|
||||||
image: quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
|
image: quay.io/quay/quay-ci:${CI_COMMIT_REF_SLUG}
|
||||||
script:
|
script:
|
||||||
- sleep 60
|
- sleep 60
|
||||||
- python initdb.py
|
|
||||||
- sleep 30
|
|
||||||
- ./node_modules/.bin/webdriver-manager update
|
|
||||||
- yarn e2e
|
- yarn e2e
|
||||||
services:
|
services:
|
||||||
- postgres:9.6
|
- postgres:9.6
|
||||||
|
|
Reference in a new issue