2018-09-11 21:28:18 +00:00
|
|
|
pool:
|
|
|
|
vmImage: 'Ubuntu 16.04'
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- bash: |
|
2018-09-17 21:09:02 +00:00
|
|
|
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git "${AGENT_BUILDDIRECTORY}/third_party/depot_tools"
|
2018-09-11 21:28:18 +00:00
|
|
|
echo "##vso[task.setvariable variable=PATH]$PATH:${AGENT_BUILDDIRECTORY}/depot_tools"
|
2018-10-02 03:11:40 +00:00
|
|
|
displayName: Setup Depot Tools
|
2018-09-11 21:28:18 +00:00
|
|
|
|
|
|
|
- bash: |
|
2018-09-17 21:09:02 +00:00
|
|
|
export PATH="$PATH:${AGENT_BUILDDIRECTORY}/third_party/depot_tools"
|
|
|
|
echo "##vso[task.setvariable variable=PATH]$PATH"
|
2018-09-11 21:28:18 +00:00
|
|
|
npm install
|
|
|
|
npm run lint
|
2018-10-02 03:11:40 +00:00
|
|
|
displayName: Run Lint
|