|
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 |
| - CRA_INTERNAL_TEST: true |
16 |
| - |
17 |
| -# ****************************************************************************** |
18 |
| -# Simple test suite |
19 |
| -# ****************************************************************************** |
20 |
| -jobs: |
21 |
| - - template: azure-pipelines-test-job.yml |
22 |
| - parameters: |
23 |
| - name: Simple |
24 |
| - testScript: tasks/e2e-simple.sh |
25 |
| - |
26 |
| - # ****************************************************************************** |
27 |
| - # Installs test suite |
28 |
| - # ****************************************************************************** |
29 |
| - - template: azure-pipelines-test-job.yml |
30 |
| - parameters: |
31 |
| - name: Installs |
32 |
| - testScript: tasks/e2e-installs.sh |
33 |
| - |
34 |
| - # ****************************************************************************** |
35 |
| - # Kitchensink test suite |
36 |
| - # ****************************************************************************** |
37 |
| - - template: azure-pipelines-test-job.yml |
38 |
| - parameters: |
39 |
| - name: Kitchensink |
40 |
| - testScript: tasks/e2e-kitchensink.sh |
41 |
| - |
42 |
| - # ****************************************************************************** |
43 |
| - # Kitchensink Eject test suite |
44 |
| - # ****************************************************************************** |
45 |
| - - template: azure-pipelines-test-job.yml |
46 |
| - parameters: |
47 |
| - name: KitchensinkEject |
48 |
| - testScript: tasks/e2e-kitchensink-eject.sh |
49 |
| - |
50 |
| - # ****************************************************************************** |
51 |
| - # Behavior test suite |
52 |
| - # ****************************************************************************** |
53 |
| - - template: azure-pipelines-test-job.yml |
54 |
| - parameters: |
55 |
| - name: Behavior |
56 |
| - testScript: tasks/e2e-behavior.sh |
57 |
| - configurations: |
58 |
| - LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x } |
59 |
| - LinuxNode12: { vmImage: 'ubuntu-16.04', nodeVersion: 12.x } |
60 |
| - WindowsNode10: { vmImage: 'windows-2019', nodeVersion: 10.x } |
61 |
| - WindowsNode12: { vmImage: 'windows-2019', nodeVersion: 12.x } |
62 |
| - MacNode10: { vmImage: 'macOS-10.15', nodeVersion: 10.x } |
63 |
| - MacNode12: { vmImage: 'macOS-10.15', nodeVersion: 12.x } |
64 |
| - |
65 |
| - # ****************************************************************************** |
66 |
| - # Old Node test suite |
67 |
| - # ****************************************************************************** |
68 |
| - - job: OldNode |
69 |
| - pool: |
70 |
| - vmImage: ubuntu-latest |
71 |
| - steps: |
72 |
| - - task: NodeTool@0 |
73 |
| - inputs: |
74 |
| - versionSpec: 8.x |
75 |
| - displayName: 'Install Node.js 8.x' |
76 |
| - - bash: tasks/e2e-old-node.sh |
77 |
| - displayName: 'Run tests' |
| 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 | + CRA_INTERNAL_TEST: true |
| 16 | + |
| 17 | +# ****************************************************************************** |
| 18 | +# Simple test suite |
| 19 | +# ****************************************************************************** |
| 20 | +jobs: |
| 21 | + - template: azure-pipelines-test-job.yml |
| 22 | + parameters: |
| 23 | + name: Simple |
| 24 | + testScript: tasks/e2e-simple.sh |
| 25 | + |
| 26 | + # ****************************************************************************** |
| 27 | + # Installs test suite |
| 28 | + # ****************************************************************************** |
| 29 | + - template: azure-pipelines-test-job.yml |
| 30 | + parameters: |
| 31 | + name: Installs |
| 32 | + testScript: tasks/e2e-installs.sh |
| 33 | + |
| 34 | + # ****************************************************************************** |
| 35 | + # Kitchensink test suite |
| 36 | + # ****************************************************************************** |
| 37 | + - template: azure-pipelines-test-job.yml |
| 38 | + parameters: |
| 39 | + name: Kitchensink |
| 40 | + testScript: tasks/e2e-kitchensink.sh |
| 41 | + |
| 42 | + # ****************************************************************************** |
| 43 | + # Kitchensink Eject test suite |
| 44 | + # ****************************************************************************** |
| 45 | + - template: azure-pipelines-test-job.yml |
| 46 | + parameters: |
| 47 | + name: KitchensinkEject |
| 48 | + testScript: tasks/e2e-kitchensink-eject.sh |
| 49 | + |
| 50 | + # ****************************************************************************** |
| 51 | + # Behavior test suite |
| 52 | + # ****************************************************************************** |
| 53 | + - template: azure-pipelines-test-job.yml |
| 54 | + parameters: |
| 55 | + name: Behavior |
| 56 | + testScript: tasks/e2e-behavior.sh |
| 57 | + configurations: |
| 58 | + LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x } |
| 59 | + LinuxNode12: { vmImage: 'ubuntu-16.04', nodeVersion: 12.x } |
| 60 | + WindowsNode10: { vmImage: 'windows-2019', nodeVersion: 10.x } |
| 61 | + WindowsNode12: { vmImage: 'windows-2019', nodeVersion: 12.x } |
| 62 | + MacNode10: { vmImage: 'macOS-10.15', nodeVersion: 10.x } |
| 63 | + MacNode12: { vmImage: 'macOS-10.15', nodeVersion: 12.x } |
| 64 | + |
| 65 | + # ****************************************************************************** |
| 66 | + # Old Node test suite |
| 67 | + # ****************************************************************************** |
| 68 | + - job: OldNode |
| 69 | + pool: |
| 70 | + vmImage: ubuntu-latest |
| 71 | + steps: |
| 72 | + - task: NodeTool@0 |
| 73 | + inputs: |
| 74 | + versionSpec: 8.x |
| 75 | + displayName: 'Install Node.js 8.x' |
| 76 | + - bash: tasks/e2e-old-node.sh |
| 77 | + displayName: 'Run tests' |
0 commit comments