generated from vividus-framework/vividus-starter
-
Notifications
You must be signed in to change notification settings - Fork 316
/
azure-pipelines.yml
55 lines (46 loc) · 1.3 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
schedules:
- cron: '30 4 * * MON-FRI'
displayName: Workday tests execution
branches:
include:
- main
trigger:
branches:
include:
- main
paths:
include:
- '**/rest_api/**'
- '**/web_app/**'
- 'azure-pipelines.yml'
pr:
branches:
include:
- main
paths:
include:
- '**/rest_api/**'
- '**/web_app/**'
- 'azure-pipelines.yml'
pool:
vmImage: 'ubuntu-latest'
steps:
- checkout: self
submodules: true
- task: JavaToolInstaller@0
inputs:
versionSpec: '21'
jdkArchitectureOption: x64
jdkSourceOption: PreInstalled
- script: |
./gradlew runStories -Pvividus.configuration.suites=rest_api -Pvividus.allure.history-directory=output/history/rest-api-tests
displayName: 'Run REST API tests'
- publish: $(System.DefaultWorkingDirectory)/output/reports/allure
artifact: REST API tests report
condition: always()
- script: |
./gradlew runStories -Pvividus.configuration.suites=web_app -Pvividus.configuration.profiles=web/headless/chrome -Pvividus.allure.history-directory=output/history/web-app-tests
displayName: 'Run web application tests'
- publish: $(System.DefaultWorkingDirectory)/output/reports/allure
artifact: Web application tests report
condition: always()