forked from trustwallet/assets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
63 lines (51 loc) · 1.39 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
trigger:
- master
pool:
vmImage: 'ubuntu-latest'
variables:
npm_config_cache: '$(Pipeline.Workspace)/.npm'
steps:
- checkout: self
persistCredentials: true
# - task: CmdLine@2
# displayName: Checkout $(Build.SourceBranchName)
# inputs:
# script: 'git checkout $(Build.SourceBranchName)'
- task: NodeTool@0
inputs:
versionSpec: '12.x'
displayName: Install Node.js
- task: Bash@3
displayName: Install global dependency
inputs:
targetType: inline
script: |
sudo npm install -g typescript
sudo npm install -g ts-node
- task: Npm@1
inputs:
command: install
verbose: true
displayName: Install dependencies
# - task: Cache@2
# inputs:
# key: 'npm | "$(Agent.OS)" | package-lock.json'
# path: $(npm_config_cache)
# displayName: Cache npm
- task: Bash@3
displayName: Set git config
inputs:
targetType: inline
script: |
git config --global user.email "[email protected]"
git config --global user.name "TrustWalletBot"
# - script: sudo npm run checksum
# workingDirectory: $(Build.SourcesDirectory)
# displayName: Run checksum script
# - task: Bash@3
# displayName: Commit result of checksum script
# inputs:
# targetType: filePath
# filePath: ./script/commit.sh
- script: npm t
displayName: Run tests