Add Appr e2e

This commit is contained in:
Antoine Legrand 2017-07-28 13:04:28 +02:00
parent fc8ba8b84e
commit 7cc39a7c54
2 changed files with 50 additions and 10 deletions

View file

@ -7,9 +7,10 @@ local baseJob = (import '.gitlab-ci/base_jobs.libsonnet')(vars);
local stages_list = [
// gitlab-ci stages
'docker_base',
'docker_build',
'integration',
'docker_build',
'deploy_preview',
'unit_tests',
'docker_release',
@ -109,17 +110,28 @@ local jobs = {
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",
"apt-get install -y nodejs",
"./node_modules/.bin/webdriver-manager update",
"python initdb.py",
],
script: [
"sleep 60",
"python initdb.py",
"sleep 30",
"./node_modules/.bin/webdriver-manager update",
"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
local db_stage = { stage: stages.unit_tests },
local dbname = 'quay',