forked from SAP/spartacus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
41 lines (41 loc) · 1.17 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
dist: bionic
language: node_js
node_js:
- 12.16.1
cache: yarn
git:
depth: false
branches:
only:
- develop
- "/^epic\\/.*$/"
- "/^release\\/.*$/"
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-sonar.sh sonar"
name: "Unit tests / Sonar"
- script: "./ci-scripts/e2e-cypress.sh --ssr"
name: "SSR build / smoke test"
- 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: "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"
addons:
chrome: stable
sonarcloud:
organization: sap