trustwallet-assets/azure-pipelines.yml
Mykola 3ac372ecf8
Checksum script (#1263)
* Add @types/node

* Add checksum script

* Update azl pipeline

* Update map

* Optimised images with calibre/image-actions

* Omit checkout

* remove

* Recreate with exectute permission

* Add lovercase for tsting script

* Change to chmod 700

* run with sudo

* run with sudo

* Use SYSTEM_PULLREQUEST_SOURCEBRANCH var to get branch name

* Use Bash task

* Checksum ERC20 addresses [skip ci]

* Add in lowercase for testing

* Checksum ERC20 addresses [skip ci]

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2020-02-18 18:00:11 -08:00

55 lines
1.2 KiB
YAML

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
- script: |
sudo npm install -g typescript
sudo npm install -g ts-node
displayName: Install global dependency
- 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
- script: |
git config --global user.email "bot@trustwallet.com"
git config --global user.name "TrustWalletBot"
- script: sudo npm run checksum-erc20
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