Commit 68ee6ca9 authored by Mikaël Salson's avatar Mikaël Salson

.gitlab-ci.yml: Split the server functional job for each firefox version

The drawback is that we'll need to build the docker twice.
It could be built in a separate job and be used as an artifact instead.
parent b5b0c91c
Pipeline #104817 passed with stages
in 10 minutes and 17 seconds
......@@ -352,7 +352,7 @@ test_server_unit:
tags:
- web
test_server_functional:
.test_server_functional:
stage: test_functional
script:
- docker build --no-cache --build-arg git_branch=$CI_COMMIT_REF_NAME --build-arg build_env=TEST -t "vidjil/server:test" docker/vidjil-server
......@@ -367,7 +367,7 @@ test_server_functional:
- docker exec docker_nginx_1 make -C /usr/share/vidjil browser
- source /etc/profile.d/rvm.sh
- rvm use 2.6.1
- HEADLESS=1 make functional_server BROWSERS="--browsers-from-file" || (cd docker && docker-compose stop; docker stop $(docker ps -aq); docker rm $(docker ps -aq); docker rmi "vidjil/server:test" "vidjil/client:test"; false)
- HEADLESS=1 make functional_server || (cd docker && docker-compose stop; docker stop $(docker ps -aq); docker rm $(docker ps -aq); docker rmi "vidjil/server:test" "vidjil/client:test"; false)
- cd docker && docker-compose stop
- docker stop $(docker ps -aq)
- docker rm $(docker ps -aq)
......@@ -382,6 +382,19 @@ test_server_functional:
- x86_64
- docker
test-server-functional-ff32:
extends: .test_server_functional
variables:
FIREFOX_VERSION: 32
IGNORE_FUNCTIONAL_CBP: 1
test-server-functional-ff45:
extends: .test_server_functional
variables:
FIREFOX_VERSION: 45
IGNORE_FUNCTIONAL_CBP: 1
# Benchmark
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment