From c17dc0fabcd10a4c658fb5f43d9f013e048be751 Mon Sep 17 00:00:00 2001 From: Brett Logan Date: Mon, 28 Oct 2019 23:05:13 -0400 Subject: [PATCH] Add Azure Pipelines Files Signed-off-by: Brett Logan Change-Id: Ided1c0f2edec0941897aa5132d1b17d4632e0192 --- ci/azure-pipelines.yml | 44 ++++++++++++++++++++++++++++++++++++++++++ ci/install_deps.yml | 13 +++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 ci/azure-pipelines.yml create mode 100644 ci/install_deps.yml diff --git a/ci/azure-pipelines.yml b/ci/azure-pipelines.yml new file mode 100644 index 000000000..367136b17 --- /dev/null +++ b/ci/azure-pipelines.yml @@ -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 diff --git a/ci/install_deps.yml b/ci/install_deps.yml new file mode 100644 index 000000000..9c32bc0dc --- /dev/null +++ b/ci/install_deps.yml @@ -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