test yarn e2e
This commit is contained in:
parent
0ad28d056c
commit
fc8ba8b84e
5 changed files with 54 additions and 46 deletions
|
@ -8,9 +8,10 @@ local stages_list = [
|
|||
// gitlab-ci stages
|
||||
'docker_base',
|
||||
'docker_build',
|
||||
'integration',
|
||||
|
||||
'deploy_preview',
|
||||
'unit_tests',
|
||||
'integration',
|
||||
'docker_release',
|
||||
'deploy_staging',
|
||||
'teardown',
|
||||
|
@ -100,20 +101,25 @@ local jobs = {
|
|||
|
||||
// Integration API
|
||||
local integration_test = baseJob.EndToEndTest {
|
||||
stage: stages.unit_tests
|
||||
stage: stages.integration
|
||||
},
|
||||
|
||||
'demo_e2e': integration_test {
|
||||
'yarn_e2e': integration_test {
|
||||
variables+: {"APP_HOST": "http://localhost:80"},
|
||||
services+: ["selenium/standalone-chrome:3.4.0"],
|
||||
before_script+: [
|
||||
"curl -sL https://deb.nodesource.com/setup_8.x | bash -",
|
||||
"apt-get update && apt-get install -y nodejs",
|
||||
],
|
||||
script: [
|
||||
"sleep 60",
|
||||
"python initdb.py",
|
||||
"sleep 30",
|
||||
"curl localhost:80/cnr/version",
|
||||
"sleep 30",
|
||||
"curl localhost:80",
|
||||
"sleep 30",
|
||||
"curl localhost:80/status",
|
||||
"./node_modules/.bin/webdriver-manager update",
|
||||
"yarn e2e",
|
||||
]
|
||||
},
|
||||
|
||||
// Unit-tests with real databases
|
||||
local db_stage = { stage: stages.unit_tests },
|
||||
local dbname = 'quay',
|
||||
|
|
Reference in a new issue