-
Notifications
You must be signed in to change notification settings - Fork 948
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Brett Logan <Brett.T.Logan@ibm.com> Change-Id: Ided1c0f2edec0941897aa5132d1b17d4632e0192
- Loading branch information
Brett Logan
authored and
Brett Logan
committed
Oct 29, 2019
1 parent
460f42e
commit c17dc0f
Showing
2 changed files
with
57 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,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 |
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,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 |