Skip to content

Commit

Permalink
ci: run cypress in single job for now (#1658)
Browse files Browse the repository at this point in the history
* run cypress in single job for now

* remove cli flags

* do not fail build if cypress artifacts are not present
  • Loading branch information
a-b-r-o-w-n authored and cwhitten committed Nov 26, 2019
1 parent 01d70e4 commit 32ce909
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
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

0 comments on commit 32ce909

Please sign in to comment.