forked from SAP/spartacus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (46 loc) · 1.36 KB
/
.travis.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
dist: bionic
language: node_js
node_js:
- 12.16.1
cache: yarn
git:
depth: false
branches:
only:
- develop
- "/^epic\\/.*$/"
- "/^release\\/.*$/"
- "/^integration-libs\\/.*$/"
defaults: &defaults
script: "export CYPRESS_CONFIG=cypress.ci.json && export SPA_ENV='ci,b2c' && ./ci-scripts/e2e-cypress.sh"
jobs:
- script: "./ci-scripts/unit-tests-core-lib.sh"
name: "Unit tests for core and storefrontlib"
- script: "./ci-scripts/unit-tests.sh"
name: "Unit tests for libs"
- script: "./ci-scripts/validate-lint.sh"
name: "Validation checks"
- script: "export CYPRESS_CONFIG=cypress.ci.b2b.json && export SPA_ENV='ci,b2b' && ./ci-scripts/e2e-cypress.sh -s b2b"
name: "E2E regression tests for B2B"
- script:
name: "E2E tests for B2C, 1st job"
<<: *defaults
- script:
name: "E2E tests for B2C, 2st job"
<<: *defaults
- script:
name: "E2E tests for B2C, 3rd job"
<<: *defaults
- script:
name: "E2E tests for B2C, 4th job"
<<: *defaults
- script: "./ci-scripts/e2e-cypress.sh --ssr"
name: "E2E tests for SSR B2C"
- script: "export CYPRESS_CONFIG=cypress.ci.cdc.json && export SPA_ENV='cdc' && ./ci-scripts/e2e-cypress.sh -s cdc || exit 0"
name: "E2E tests for CDC"
- script: "./ci-scripts/lhci.sh"
name: "Lighthouse score validation"
addons:
chrome: stable
sonarcloud:
organization: sap