forked from OFlavioBliss/GrafanaFE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines_old.yml
86 lines (81 loc) · 2.03 KB
/
bitbucket-pipelines_old.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
image: cypress/browsers:node16.13.2-chrome100-ff98
options:
max-time: 120
definitions:
caches:
npm: $HOME/.npm
cypress: $HOME/.cache/Cypress
cypressChrome: &cypressChrome
name: E2E tests on Chrome
caches:
- npm
- node
- cypress
script:
- yarn cy:run:dashboard --browser chrome --parallel --group Chrome --ci-build-id $BITBUCKET_BUILD_NUMBER
artifacts:
- cypress/screenshots/**
- cypress/videos/**
- cypress/downloads/**
- cypress/test-results/**
cypressFirefox: &cypressFirefox
name: E2E tests on Firefox
caches:
- npm
- node
- cypress
script:
- yarn cy:run:dashboard --browser firefox --parallel --group Firefox --ci-build-id $BITBUCKET_BUILD_NUMBER
artifacts:
- cypress/screenshots/**
- cypress/videos/**
- cypress/downloads/**
- cypress/test-results/**
pipelines:
default:
- step:
name: Install dependencies and compile
caches:
- npm
- cypress
- node
script:
- yarn
- yarn compile
- yarn lint:fix
- yarn cy:list:spec:by:names
- yarn cy:list:spec:by:tags
- step:
name: Cypress - Chrome browser
caches:
- npm
- cypress
- node
script:
- yarn cy:run:chrome
artifacts:
- cypress/screenshots/**
- cypress/videos/**
- cypress/test-results/**
- cypress/downloads/**
branches:
cypressDashboard:
- step:
name: Install dependencies
caches:
- npm
- cypress
- node
script:
- yarn
- yarn compile
- yarn lint:fix
- yarn cy:list:spec:by:names
- yarn cy:list:spec:by:tags
- parallel:
- step:
<<: *cypressChrome
- step:
<<: *cypressChrome
- step:
<<: *cypressChrome