Verified Commit 652ad374 authored by Dominik George's avatar Dominik George 🍻
Browse files

[CI] Use BrowserStack for Selenium tests

parent e2f8decf
Pipeline #6768 passed with stage
in 1 minute and 18 seconds
......@@ -2,8 +2,9 @@ test:
interruptible: true
stage: test
services:
- name: selenium/standalone-firefox
alias: selenium
- name: browserstack/local
alias: browserstack-local
command: ["--key", "$BROWSERSTACK_ACCESS_KEY", "--only-automate", "--local-identifier", "edugit_$CI_JOB_ID"]
before_script:
- adduser --disabled-password --gecos "Test User" testuser
- chown -R testuser .
......@@ -11,8 +12,9 @@ test:
- sudo apt update
- sudo apt install python3-ldap libldap2-dev libssl-dev libsasl2-dev python3.7-dev -y
- sudo -u testuser
env TEST_SELENIUM_HUB=http://selenium:4444/wd/hub
TEST_SELENIUM_BROWSERS=firefox
env TEST_SELENIUM_HUB=$BROWSERSTACK_USERNAME:$ROWSERSTACK_ACCESS_KEY@hub-cloud.browserstack.com/wd/hub
TEST_SELENIUM_BROWSERS=chrome,edge,firefox,safari
TEST_SELENIUM_CAPABILITIES="{'browserstack.local': 'true', 'browserstack.localIdentifier': 'edugit_$CI_JOB_ID', 'project': '$CI_PROJECT_PATH', 'build': '$CI_COMMIT_REF_NAME'}"
TEST_HOST=build
tox -e selenium -- --junitxml=.tox/junit.xml
artifacts:
......
Supports Markdown
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