Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
CI: Add an alias to selenium
· 08273e9a
Justin Kromlinger
authored
Sep 12, 2019
08273e9a
CI: Add dependency definition, depend on deploy flag in restore job
· 93f2b82b
Justin Kromlinger
authored
Sep 12, 2019
93f2b82b
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
93f2b82b
...
...
@@ -62,18 +62,26 @@ buildAndTest:
-
tags
deploy
:
dependencies
:
-
buildAndTest
stage
:
deploy
extends
:
.ansible
script
:
-
ansible-playbook --private-key=ansible.key -i deployment/inventories/staging deployment/deploy.yml
-
echo "true" > .deployed
artifacts
:
paths
:
-
.deployed
selenium
:
dependencies
:
[]
stage
:
acceptance
image
:
golang
variables
:
HUB_HOST
:
"
s
tandalone-chrome
"
HUB_HOST
:
"
s
elenium
"
services
:
-
selenium/standalone-chrome:latest
-
name
:
selenium/standalone-chrome:latest
alias
:
selenium
script
:
-
cd acception
-
go test . --hub="${HUB_HOST}:4444" --url="https://hashworks.net/" --htmlPath acceptionTest.html --screenshotPath acceptionTest.png
...
...
@@ -88,9 +96,11 @@ selenium:
-
acceptionTest.png
restore
:
dependencies
:
-
deploy
stage
:
restore
extends
:
.ansible
script
:
-
test -f
acceptionTest.html
|| exit
0
-
test -f
.deployed
|| exit
0
-
ansible-playbook --private-key=ansible.key -i deployment/inventories/staging deployment/restore.yml
when
:
on_failure