Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: run cypress in single job for now #1658

Merged
merged 3 commits into from
Nov 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Composer/scripts/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
yarn start &
SERVER_PID=$!

npx cypress run --browser chrome --record --parallel --ci-build-id $BUILD_BUILDNUMBER --group "Azure CI"
npx cypress run --browser chrome
cleanup

function cleanup {
Expand Down
17 changes: 13 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ variables:
jobs:
- job: e2e
displayName: End-to-End Tests
strategy:
parallel: 4
# re-enable once we upgrade our subscription to cypress
# strategy:
# parallel: 4
pool:
vmImage: ubuntu-latest

Expand Down Expand Up @@ -46,7 +47,15 @@ jobs:
workingDirectory: Composer
continueOnError: true
env:
CYPRESS_RECORD_KEY: $(CYPRESS_RECORD_KEY)
# CYPRESS_RECORD_KEY: $(CYPRESS_RECORD_KEY)
CYPRESS_VIDEO: true
CYPRESS_VIDEO_UPLOAD_ON_PASSES: true
# CYPRESS_VIDEO_UPLOAD_ON_PASSES: true
CYPRESS_SCREENSHOTS_FOLDER: $(Build.ArtifactStagingDirectory)/cypress/screenshots
CYPRESS_VIDEOS_FOLDER: $(Build.ArtifactStagingDirectory)/cypress/videos
TERM: xterm
- task: PublishPipelineArtifact@1
condition: in(variables['Agent.JobStatus'], 'SucceededWithIssues', 'Failed')
continueOnError: true
inputs:
targetPath: $(Build.ArtifactStagingDirectory)/cypress
artifactName: e2e