1 Star 0 Fork 1

training-2021/cypress-realworld-app

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
buildspec.yml 2.46 KB
一键复制 编辑 原始数据 按行查看 历史
Kevin Old 提交于 2021-08-06 17:15 . Update to Cypress 8.2.0 (#1034)
version: 0.2
batch:
fast-fail: false
build-matrix:
static:
ignore-failure: false
env:
type: LINUX_CONTAINER
privileged-mode: true
compute-type: BUILD_GENERAL1_MEDIUM
dynamic:
env:
compute-type:
- BUILD_GENERAL1_MEDIUM
image:
- public.ecr.aws/cypress-io/cypress/browsers:node14.16.0-chrome90-ff88
variables:
CY_GROUP_SPEC:
- "UI - Chrome|chrome|cypress/tests/ui/*"
- "UI - Chrome - Mobile|chrome|cypress/tests/ui/*|viewportWidth=375,viewportHeight=667"
- "API|chrome|cypress/tests/api/*"
- "UI - Firefox|firefox|cypress/tests/ui/*"
- "UI - Firefox - Mobile|firefox|cypress/tests/ui/*|viewportWidth=375,viewportHeight=667"
WORKERS:
- 1
- 2
- 3
- 4
- 5
phases:
install:
commands:
# Set COMMIT_INFO variables to send Git specifics to Cypress Dashboard 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)"
- echo $COMMIT_INFO_BRANCH
- echo $COMMIT_INFO_MESSAGE
- echo $COMMIT_INFO_EMAIL
- echo $COMMIT_INFO_AUTHOR
- echo $COMMIT_INFO_SHA
- echo $COMMIT_INFO_REMOTE
- echo $CODEBUILD_INITIATOR
- echo $CY_GROUP_SPEC
- CY_GROUP=$(echo $CY_GROUP_SPEC | cut -d'|' -f1)
- CY_BROWSER=$(echo $CY_GROUP_SPEC | cut -d'|' -f2)
- CY_SPEC=$(echo $CY_GROUP_SPEC | cut -d'|' -f3)
- CY_CONFIG=$(echo $CY_GROUP_SPEC | cut -d'|' -f4)
- echo $CY_GROUP
- echo $CY_BROWSER
- echo $CY_SPEC
- echo $CY_CONFIG
- yarn install --frozen-lockfile
pre_build:
commands:
- yarn types
- yarn lint
- yarn test:unit:ci
- yarn build:ci
build:
commands:
- yarn start:ci & npx wait-on http://localhost:3000
- npx cypress run --record --parallel --browser $CY_BROWSER --ci-build-id $CODEBUILD_INITIATOR --group "$CY_GROUP" --spec "$CY_SPEC" --config "$CY_CONFIG"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/training-2021/cypress-realworld-app.git
git@gitee.com:training-2021/cypress-realworld-app.git
training-2021
cypress-realworld-app
cypress-realworld-app
develop

搜索帮助