/
cypress.yml
41 lines (39 loc) · 2.27 KB
/
cypress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# ----------------------------------------------------------------------------------------------------------------------
# Cypress base service
# ----------------------------------------------------------------------------------------------------------------------
services:
artemis-cypress:
# Cypress image with node and chrome browser installed (Cypress installation needs to be done separately because we require additional dependencies)
image: docker.io/cypress/browsers:node-20.6.1-chrome-116.0.5845.187-1-ff-117.0-edge-116.0.1938.76-1
pull_policy: if_not_present
environment:
CYPRESS_baseUrl: "https://artemis-nginx"
CYPRESS_video: "${bamboo_cypress_video_enabled}"
CYPRESS_adminUsername: "${bamboo_artemis_admin_username}"
CYPRESS_adminPassword: "${bamboo_artemis_admin_password}"
CYPRESS_username: "${bamboo_cypress_username_template}"
CYPRESS_password: "${bamboo_cypress_password_template}"
CYPRESS_allowGroupCustomization: "true"
CYPRESS_studentGroupName: "artemis-e2etest-students"
CYPRESS_tutorGroupName: "artemis-e2etest-tutors"
CYPRESS_editorGroupName: "artemis-e2etest-editors"
CYPRESS_instructorGroupName: "artemis-e2etest-instructors"
CYPRESS_createUsers: "${bamboo_cypress_create_users}"
# use alternative cypress version to avoid blocking sorry cypress (see https://currents.dev/readme/integration-with-cypress/alternative-cypress-binaries)
CYPRESS_DOWNLOAD_MIRROR: "https://cy-cdn.currents.dev"
SORRY_CYPRESS_KEY: "${bamboo_sorry_cypress_record_secret}"
SORRY_CYPRESS_URL: "${bamboo_sorry_cypress_url}"
SORRY_CYPRESS_BUILD_ID: "${bamboo_buildNumber}"
SORRY_CYPRESS_BRANCH_NAME: "${bamboo_planRepository_branchName}"
SORRY_CYPRESS_RERUN_COUNT: "${bamboo_RerunBuildTriggerReason_noOfRetries}"
SORRY_CYPRESS_PROJECT_ID: "artemis-mysql"
NO_COLOR: "1"
command: sh -c "cd /app/artemis/src/test/cypress && chmod 777 /root && npm ci && npm run cypress:run"
volumes:
- ..:/app/artemis
networks:
- artemis
networks:
artemis:
driver: "bridge"
name: artemis