-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Azure Pipelines CI pipeline & script (#223)
Simple CI check to start moving repo to Azure Devops. Will add release pipelines and scripts in future PR. Resolves [AB#588]
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# CI should only run when PRs are opened against dev/master. | ||
pr: | ||
- master | ||
- dev | ||
|
||
pool: | ||
vmImage: 'ubuntu-latest' | ||
|
||
steps: | ||
- task: NodeTool@0 | ||
displayName: 'Use Node 10.x' | ||
inputs: | ||
versionSpec: 10.x | ||
|
||
- task: Bash@3 | ||
displayName: 'Build serverless-azure-functions' | ||
inputs: | ||
targetType: filePath | ||
filePath: ./scripts/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
|
||
npm ci | ||
# NOTE: build will also invoke Node prebuild, pretest and test lifecycle scripts | ||
npm run build |