1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-22 16:08:04 +01:00
bitwarden-estensione-browser/azure-pipelines.yml

42 lines
823 B
YAML
Raw Normal View History

# 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
trigger:
2019-03-29 03:20:29 +01:00
branches:
2019-03-29 03:25:10 +01:00
include:
- '*'
2019-03-29 03:20:29 +01:00
exclude:
- l10n_master
pool:
2019-03-29 03:20:29 +01:00
vmImage: 'vs2017-win2016'
2019-03-29 03:26:08 +01:00
name: $(Rev:r)
steps:
- task: NodeTool@0
inputs:
versionSpec: '10.x'
displayName: 'Install Node.js'
2019-03-29 03:20:29 +01:00
- script: npm install -g gulp
2019-03-29 03:34:34 +01:00
displayName: 'Global install gulp'
2019-03-29 03:20:29 +01:00
- powershell: |
choco install cloc --no-progress
cloc --include-lang TypeScript,JavaScript,HTML,Sass,CSS --vcs git
2019-03-29 03:34:34 +01:00
displayName: 'Cloc'
2019-03-29 03:20:29 +01:00
- script: |
2019-03-29 03:20:29 +01:00
node --version
npm --version
2019-03-29 03:34:34 +01:00
displayName: 'Version checks'
2019-03-29 03:20:29 +01:00
- script: npm install
2019-03-29 03:34:34 +01:00
displayName: 'npm install'
2019-03-29 03:20:29 +01:00
2019-03-29 03:34:34 +01:00
- script: npm run build
displayName: 'npm run build'