Skip to content

Commit

Permalink
Add Azure Pipelines Files
Browse files Browse the repository at this point in the history
Signed-off-by: Brett Logan <Brett.T.Logan@ibm.com>
Change-Id: Ided1c0f2edec0941897aa5132d1b17d4632e0192
  • Loading branch information
lindluni committed Oct 29, 2019
1 parent 460f42e commit c17dc0f
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
44 changes: 44 additions & 0 deletions ci/azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SPDX-License-Identifier: Apache-2.0

name: $(SourceBranchName)-$(Date:yyyyMMdd)$(Rev:.rrr)
trigger:
- master

jobs:
- job: TestsWithCoverage
pool:
vmImage: ubuntu-16.04
steps:
- template: install_deps.yml
- checkout: self
- script: |
npm config set prefix ~/npm && npm install -g mocha
npm install chai && npm install
cd app/test && npm install
npm run test
cd ../../client && npm install
echo "--------> npm tests with code coverage"
npm run test:ci -- -u --coverage && npm run build
displayName: Run Tests With Coverage Report
- job: SanityChecks
pool:
vmImage: ubuntu-16.04
steps:
- template: install_deps.yml
- checkout: self
- script: |
npm install
npm run e2e-test-sanitycheck:ci
displayName: Run Sanity Checks
- job: GUITests
pool:
vmImage: ubuntu-16.04
steps:
- template: install_deps.yml
- checkout: self
- script: |
npm install
npm run e2e-gui-test:ci
displayName: Run GUI Tests
13 changes: 13 additions & 0 deletions ci/install_deps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# SPDX-License-Identifier: Apache-2.0

steps:
- task: NodeTool@0
inputs:
versionSpec: '8.11'
displayName: Install NodeJs
- task: UsePythonVersion@0
inputs:
versionSpec: '2.7'
displayName: Install Python
- script: pip install virtualenv
displayName: Install Virtualenv

0 comments on commit c17dc0f

Please sign in to comment.