Skip to content

Commit 055220e

Browse files
ludmilanesvitiyvalorkin
authored andcommitted
feat(tests): add support for cypress dashboard for debugging (#4908)
1 parent a582eb7 commit 055220e

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.travis.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ env:
1616
- SAUCE_ACCESS_KEY_PR=e0a97bd3-4b74-4408-89bf-cce1b44a8bf1
1717
- BROWSER_PROVIDER_READY_FILE=/tmp/sauce-connect-ready
1818
- LOGS_DIR=/tmp/logs
19+
- CY_KEY=4aa7a1c0-3a4f-444e-b324-6fc305a543a8
1920

2021
stages:
2122
- name: Testing
@@ -156,20 +157,20 @@ jobs:
156157
- stage: "post deploy testing"
157158
name: "Run cypress to check SSR"
158159
# env: URL=https://ngx-universal.herokuapp.com/#
159-
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/integration,baseUrl=https://ngx-universal.herokuapp.com/#/
160+
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/integration,baseUrl=https://ngx-universal.herokuapp.com/#/ --record --key $CY_KEY
160161
name: "Cypress integration suit run on SSR "
161-
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/full,baseUrl=https://ngx-universal.herokuapp.com/#/
162+
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/full,baseUrl=https://ngx-universal.herokuapp.com/#/ --record --key $CY_KEY
162163
name: "Cypress full suit run on SSR "
163164
# test cypress full for gh-pages
164-
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/integration,baseUrl=http://ngx-bootstrap-latest.surge.sh/#/
165+
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/integration,baseUrl=http://ngx-bootstrap-latest.surge.sh/#/ --record --key $CY_KEY
165166
name: "Cypres integration run with @latest angular"
166-
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/full,baseUrl=http://ngx-bootstrap-latest.surge.sh/#/
167+
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/full,baseUrl=http://ngx-bootstrap-latest.surge.sh/#/ --record --key $CY_KEY
167168
name: "Cypres full run with @latest angular"
168169
# env: URL=https://valor-software.com/ngx-bootstrap/#/
169-
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/integration,baseUrl=https://valor-software.com/ngx-bootstrap/#/
170+
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/integration,baseUrl=https://valor-software.com/ngx-bootstrap/#/ --record --key $CY_KEY
170171
name: "Cypress integration on gh-pages after deploy"
171172
if: tag =~ ^v\d+
172-
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/full,baseUrl=https://valor-software.com/ngx-bootstrap/#/
173+
- script: ./node_modules/.bin/cypress run --config integrationFolder=cypress/full,baseUrl=https://valor-software.com/ngx-bootstrap/#/ --record --key $CY_KEY
173174
name: "Cypress full on gh-pages after deploy"
174175
if: tag =~ ^v\d+
175176

cypress.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"baseUrl": "http://localhost:4200/#",
3-
"video": false
3+
"video": false,
4+
"projectId": "5mm2dy"
45
}

0 commit comments

Comments
 (0)