diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 5172d86..2600104 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,6 +27,36 @@ steps: npm test displayName: 'run unit and integration tests' +- script: | + ./node_modules/.bin/webdriver-manager update --versions.chrome=77.0.3865.40 + displayName: 'add chrome driver to node directory' + condition: | + or( + eq(variables['Build.Reason'], 'PullRequest'), + eq(variables['Build.SourceBranch'], 'refs/heads/master'), + eq(variables['Build.SourceBranch'], 'refs/heads/develop') + ) + +- script: | + npm run-script e2e + displayName: 'run end-to-end tests' + condition: | + or( + eq(variables['Build.Reason'], 'PullRequest'), + eq(variables['Build.SourceBranch'], 'refs/heads/master'), + eq(variables['Build.SourceBranch'], 'refs/heads/develop') + ) + +- script: | + npm run-script lint + displayName: 'run linting' + condition: | + or( + eq(variables['Build.Reason'], 'PullRequest'), + eq(variables['Build.SourceBranch'], 'refs/heads/master'), + eq(variables['Build.SourceBranch'], 'refs/heads/develop') + ) + - script: | npm run-script build displayName: 'npm build' diff --git a/package.json b/package.json index 6b71940..5b8a412 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,8 @@ "test": "ng test", "test-local": "ng test --browsers=Chrome --karmaConfig=karma.conf.local.js", "lint": "ng lint", - "e2e": "ng e2e" + "e2e-local": "ng e2e", + "e2e": "ng e2e --webdriverUpdate=false" }, "private": true, "dependencies": {