Skip to content

Commit

Permalink
feat: Azure Pipelines CI pipeline & script (#223)
Browse files Browse the repository at this point in the history
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
tbarlow12 committed Sep 13, 2019
1 parent 2f3b116 commit 905052d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pipelines/ci.yml
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
6 changes: 6 additions & 0 deletions scripts/build.sh
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

0 comments on commit 905052d

Please sign in to comment.