forked from desktop/desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
124 lines (120 loc) · 3.58 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
variables:
PYTHON: 'python2.7'
jobs:
- job: Windows
pool:
vmImage: vs2017-win2016
steps:
- task: NodeTool@0
inputs:
versionSpec: '8.12.0'
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
inputs:
versionSpec: '1.5.1'
- script: |
yarn install --force
name: Install
- script: |
yarn build:prod
name: Build
- script: |
yarn test:setup && yarn test
name: Test
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**junit*.xml'
testRunTitle: $(Agent.OS) Test Results
condition: always()
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage results'
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '**/app/coverage/cobertura-coverage.xml'
condition: always()
- job: Linux
pool:
vmImage: ubuntu-16.04
steps:
- script: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libsecret-1-dev xvfb fakeroot dpkg rpm xz-utils xorriso zsync libxss1 libgconf2-4 libgtk-3-0
- task: NodeTool@0
inputs:
versionSpec: '8.12.0'
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
inputs:
versionSpec: '1.5.1'
- script: |
yarn install --force
name: Install
- script: |
yarn build:prod
name: Build
- script: |
export DISPLAY=':99.0'
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
yarn test:setup && yarn test
name: Test
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**junit*.xml'
testRunTitle: $(Agent.OS) Test Results
condition: always()
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage results'
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '**/app/coverage/cobertura-coverage.xml'
condition: always()
- job: macOS
pool:
vmImage: xcode9-macos10.13
steps:
- task: NodeTool@0
inputs:
versionSpec: '8.12.0'
- script: |
yarn install --force
name: Install
- script: |
yarn build:prod
name: Build
- script: |
yarn test:setup && yarn test
name: Test
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**junit*.xml'
testRunTitle: $(Agent.OS) Test Results
condition: always()
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage results'
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '**/app/coverage/cobertura-coverage.xml'
condition: always()
- job: Lint
pool:
vmImage: ubuntu-16.04
steps:
- script: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends libsecret-1-dev
- task: NodeTool@0
inputs:
versionSpec: '8.12.0'
- task: geeklearningio.gl-vsts-tasks-yarn.yarn-installer-task.YarnInstaller@2
inputs:
versionSpec: '1.5.1'
- script: |
yarn install --force
name: Install
- script: |
yarn lint
name: Lint
- script: |
yarn check-modified
displayName: 'Check for modified files'