-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
48 lines (46 loc) · 1.61 KB
/
buildspec.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
42
43
44
45
46
47
48
## buildspec.yml
version: 0.2
## AWS CodeBuild Batch configuration
## https://docs.aws.amazon.com/codebuild/latest/userguide/batch-build-buildspec.html
## Define build to run using the
## "cypress/browsers:node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1" image
## from the Cypress Amazon ECR Public Gallery
batch:
fast-fail: false
build-list:
- identifier: cypress-e2e-tests
env:
image: public.ecr.aws/cypress-io/cypress/browsers:node-20.9.0-chrome-118.0.5993.88-1-ff-118.0.2-edge-118.0.2088.46-1
phases:
install:
runtime-versions:
nodejs: latest
commands:
# Set COMMIT_INFO variables to send Git specifics to Cypress Cloud when recording
# https://docs.cypress.io/guides/continuous-integration/introduction#Git-information
# - export COMMIT_INFO_BRANCH="$(git rev-parse HEAD | xargs git name-rev |
# cut -d' ' -f2 | sed 's/remotes\/origin\///g')"
# - export COMMIT_INFO_MESSAGE="$(git log -1 --pretty=%B)"
# - export COMMIT_INFO_EMAIL="$(git log -1 --pretty=%ae)"
# - export COMMIT_INFO_AUTHOR="$(git log -1 --pretty=%an)"
# - export COMMIT_INFO_SHA="$(git log -1 --pretty=%H)"
# - export COMMIT_INFO_REMOTE="$(git config --get remote.origin.url)"
# - npm ci
- dnf install -y xorg-x11-server-Xvfb gtk3-devel nss alsa-lib
- npm install
pre_build:
commands:
- npm run cy:verify
- npm run cy:info
build:
commands:
- npm run cy:run
artifacts:
files:
- cypress/screenshots/**
- cypress/videos/**
- cypress/results/**
discard-paths: yes
cache:
paths:
- node_modules/**