-
-
Notifications
You must be signed in to change notification settings - Fork 59
/
linux.yml
71 lines (50 loc) · 1.67 KB
/
linux.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
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
jobs:
- job: Linux
pool:
vmImage: 'ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: '>=16.x'
- script: npm install
displayName: "Install Dependencies"
- script: npm run gulp clean
displayName: "Clean Workspace"
- script: npm run lint
displayName: "Running ESLint"
- script: npm run test
displayName: "Running Unit Tests"
- task: PublishTestResults@2
inputs:
testResultsFormat: 'JUnit'
testResultsFiles: '**/TEST-*.xml'
- script: npm run gulp "app:zip-linux"
displayName: "Package and Zip Linux Artifacts"
- task: CopyFiles@2
inputs:
Contents: 'build/*.zip'
TargetFolder: '$(build.artifactstagingdirectory)/app'
OverWrite: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/app'
artifactName: "Zip - Linux Application"
# We need to manually install libfuse2 on ubuntu 22.04
# https://github.com/AppImage/AppImageKit/wiki/FUSE
- script: sudo apt-get install libfuse2
displayName : "Installing libfuse2"
- script: npm run gulp "app:appimage-linux"
displayName: "Package AppImage Artifact"
- task: CopyFiles@2
inputs:
Contents: 'build/*.AppImage'
TargetFolder: '$(build.artifactstagingdirectory)/appimage'
OverWrite: true
- task: PublishBuildArtifacts@1
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)/appimage'
artifactName: "AppImage - Linux Application"