|
| 1 | +# |
| 2 | +# Azure Pipelines configuration for building and testing create-react-app on Linux, Windows, and macOS. |
| 3 | +# |
| 4 | + |
| 5 | +trigger: |
| 6 | +- master |
| 7 | + |
| 8 | +variables: |
| 9 | + CI: true |
| 10 | + # Overrides the Yarn and NPM cache directories so they are on the same drive as the source. This helps improve build performance on Windows hosted agents. |
| 11 | + YARN_CACHE_FOLDER: $(Build.SourcesDirectory)/../yarn-cache |
| 12 | + NPM_CONFIG_CACHE: $(Build.SourcesDirectory)/../npm-cache |
| 13 | + # Sets TEMP to be on the same drive as the cloned source on Windows. This avoids test scripts that "cd" into a directory under TEMP from failing because this directory is on a different drive from the current directory. |
| 14 | + VSTS_OVERWRITE_TEMP: True |
| 15 | + # Override Verdaccio package to use. This is temoporary and is needed to avoid socket timeouts on hosted Windows agent (on Azure). This also changes Verdaccio to return a 503 (service unavailable) instead of a 404 (not found) when the connection to the uplink timesout. |
| 16 | + VERDACCIO_PACKAGE: https://github.com/willsmythe/verdaccio/releases/download/create-react-app/verdaccio-4.0.0-alpha.8.tgz |
| 17 | + |
| 18 | +# ****************************************************************************** |
| 19 | +# Simple test suite |
| 20 | +# ****************************************************************************** |
| 21 | +jobs: |
| 22 | +- template: azure-pipelines-test-job.yml |
| 23 | + parameters: |
| 24 | + name: Simple |
| 25 | + testScript: tasks/e2e-simple.sh |
| 26 | + |
| 27 | +# ****************************************************************************** |
| 28 | +# Installs test suite |
| 29 | +# ****************************************************************************** |
| 30 | +- template: azure-pipelines-test-job.yml |
| 31 | + parameters: |
| 32 | + name: Installs |
| 33 | + testScript: tasks/e2e-installs.sh |
| 34 | + |
| 35 | +# ****************************************************************************** |
| 36 | +# Kitchensink test suite |
| 37 | +# ****************************************************************************** |
| 38 | +- template: azure-pipelines-test-job.yml |
| 39 | + parameters: |
| 40 | + name: Kitchensink |
| 41 | + testScript: tasks/e2e-kitchensink.sh |
| 42 | + |
| 43 | +# ****************************************************************************** |
| 44 | +# Kitchensink Eject test suite |
| 45 | +# ****************************************************************************** |
| 46 | +- template: azure-pipelines-test-job.yml |
| 47 | + parameters: |
| 48 | + name: KitchensinkEject |
| 49 | + testScript: tasks/e2e-kitchensink-eject.sh |
| 50 | + |
| 51 | +# ****************************************************************************** |
| 52 | +# Behavior test suite |
| 53 | +# ****************************************************************************** |
| 54 | +- template: azure-pipelines-test-job.yml |
| 55 | + parameters: |
| 56 | + name: Behavior |
| 57 | + testScript: tasks/e2e-behavior.sh |
| 58 | + configurations: |
| 59 | + LinuxNode8: { vmImage: 'ubuntu-16.04', nodeVersion: 8.x } |
| 60 | + LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x } |
| 61 | + WindowsNode8: { vmImage: 'vs2017-win2016', nodeVersion: 8.x } |
| 62 | + WindowsNode10: { vmImage: 'vs2017-win2016', nodeVersion: 10.x } |
| 63 | + MacNode8: { vmImage: 'macOS-10.13', nodeVersion: 8.x } |
| 64 | + MacNode10: { vmImage: 'macOS-10.13', nodeVersion: 10.x } |
| 65 | + |
| 66 | +# ****************************************************************************** |
| 67 | +# Old Node test suite |
| 68 | +# ****************************************************************************** |
| 69 | +- job: OldNode |
| 70 | + pool: |
| 71 | + vmImage: ubuntu-16.04 |
| 72 | + steps: |
| 73 | + - task: NodeTool@0 |
| 74 | + inputs: |
| 75 | + versionSpec: 6.x |
| 76 | + displayName: 'Install Node.js 6.x' |
| 77 | + - bash: tasks/e2e-old-node.sh |
| 78 | + displayName: 'Run tests' |
0 commit comments