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