Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ft6 #7

Merged
merged 11 commits into from
Jan 7, 2020
30 changes: 30 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down