Permalink
c7aba43 Sep 8, 2018
1 contributor

Users who have contributed to this file

37 lines (31 sloc) 1.08 KB
# run the same job on 2 CI machines in parallel
# https://docs.microsoft.com/en-us/vsts/pipelines/process/phases
phases:
- phase: Test
queue: 'Hosted Linux Preview'
steps:
- task: NodeTool@0
inputs:
versionSpec: '8.x'
displayName: 'Install Node.js'
# VSTS hosted Linux agents already have a LOT of dependencies preinstalled
# https://github.com/Microsoft/vsts-agent-docker
# so we don't have to install all recommended Cypress dependencies
# https://on.cypress.io/continuous-integration#Dependencies
- script: |
apt-get update && apt-get install -y libgconf-2-4
displayName: 'install dependencies'
- script: |
npm install
displayName: 'npm install and build'
# always interesting to see build-related environment variables
# https://docs.microsoft.com/en-us/vsts/pipelines/build/variables?view=vsts
- script: |
npm run print-env -- BUILD
displayName: 'print environment variables'
- script: |
npm run cy:verify
displayName: 'Cypress verify'
- script: |
npm run test:ci:record
displayName: 'Run Cypress tests'