-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
108 lines (108 loc) · 4.1 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
jobs:
- job: Windows
pool:
vmImage: "windows-2019"
steps:
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install Node.js"
- script: npm install
displayName: "Installing App Dependencies"
- script: npm run ap_download:windows
displayName: "Installing AP"
- script: npm run copy_ap:windows
displayName: "Copy AP Files to Location"
- script: npm run lint
displayName: "Lint project"
- script: npm test
displayName: "Unit tests"
- script: npm run e2e
displayName: "End to end tests"
- script: npm run electron:windows
displayName: "Build project"
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: "$(Build.SourcesDirectory)/release/AP Desktop.exe"
artifactName: ap-desktop-windows
displayName: "Publish build files"
- job: Linux_18
pool:
vmImage: "ubuntu-18.04"
steps:
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install Node.js"
- script: sudo apt-get update
displayName: "Updating Linux Dependencies"
- script: sudo apt-get install libssh-gcrypt-4 mono-complete rpm ffmpeg wavpack libsox-fmt-all sox shntool mp3splt fakeroot
displayName: "Installing Linux Dependencies"
- script: npm install
displayName: "Installing App Dependencies"
- script: npm run ap_download:linux
displayName: "Installing AP"
- script: npm run copy_ap:linux
displayName: "Copy AP Files to Location"
- script: npm run lint
displayName: "Lint project"
# - script: npm test
# displayName: "Unit tests"
# - script: npm run e2e
# displayName: "End to end tests"
- script: npm run electron:linux
displayName: "Build project"
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: "$(Build.SourcesDirectory)/release/AP Desktop.AppImage"
artifactName: ap-desktop-linux-18-appimage
displayName: "Publish linux app image build files"
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: "$(Build.SourcesDirectory)/release/AP Desktop.deb"
artifactName: ap-desktop-linux-18-deb
displayName: "Publish linux deb build files"
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: "$(Build.SourcesDirectory)/release/AP Desktop.rpm"
artifactName: ap-desktop-linux-18-rpm
displayName: "Publish linux rpm build files"
- job: Linux_16
pool:
vmImage: "ubuntu-16.04"
steps:
- task: NodeTool@0
inputs:
versionSpec: "10.x"
displayName: "Install Node.js"
- script: sudo apt-get update
displayName: "Updating Linux Dependencies"
- script: sudo apt-get install libssh-gcrypt-4 mono-complete rpm ffmpeg wavpack libsox-fmt-all sox shntool mp3splt fakeroot libav-tools
displayName: "Installing Linux Dependencies"
- script: npm install
displayName: "Installing App Dependencies"
- script: npm run ap_download:linux
displayName: "Installing AP"
- script: npm run lint
displayName: "Lint project"
# - script: npm test
# displayName: "Unit tests"
# - script: npm run e2e
# displayName: "End to end tests"
- script: npm run electron:linux
displayName: "Build project"
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: "$(Build.SourcesDirectory)/release/AP Desktop.AppImage"
artifactName: ap-desktop-linux-16-appimage
displayName: "Publish linux app image build files"
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: "$(Build.SourcesDirectory)/release/AP Desktop.deb"
artifactName: ap-desktop-linux-16-deb
displayName: "Publish linux deb build files"
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: "$(Build.SourcesDirectory)/release/AP Desktop.rpm"
artifactName: ap-desktop-linux-16-rpm
displayName: "Publish linux rpm build files"