Skip to content

Commit b4d7174

Browse files
author
gdgate
authored
Merge pull request #1861 from pbenes/pb-remove-heroku-pr-examples
RELATED: FET-1133 Remove heroku demo support for pull-requests Reviewed-by: Dan Homola https://github.com/no23reason
2 parents 67ab129 + ea28c52 commit b4d7174

5 files changed

Lines changed: 9 additions & 53 deletions

File tree

.github/pull_request_template.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Supported PR commands:
1313

1414
Command | Description
1515
--- | ---
16-
`extended test - examples` | Live examples tests
1716
`extended test - storybook` | Storybook screenshot tests
1817

1918
See more [options](https://confluence.intgdc.com/display/kbhr/How+to+work+with+git+and+Github#HowtoworkwithgitandGithub-Extendedchecks).
@@ -24,13 +23,13 @@ See more [options](https://confluence.intgdc.com/display/kbhr/How+to+work+with+g
2423
- [ ] [Verify pull-request formalities](https://confluence.intgdc.com/display/Development/Code-reviews)
2524
- [ ] Change was tested by using [gdc-dev-release](https://confluence.intgdc.com/display/~tomas.vojtasek/Private+NPM) in [gdc-analytical-designer](https://github.com/gooddata/gdc-analytical-designer) and [gdc-dashboards](https://github.com/gooddata/gdc-dashboards) (if applicable)
2625
- [ ] Migration guide (for major changes) is mentioned in [CHANGELOG.md](../blob/master/CHANGELOG.md).
27-
- [ ] Successful `extended test - examples`
26+
- [ ] Run examples locally and run testcafe for local run (no heroku build from pull-request support anymore)
2827
- [ ] Successful `extended test - storybook`
2928
- [ ] Checked yarn.lock consistency (no dep. duplicities especially Goodstrap)
3029

3130

3231
# Related PRs
33-
<!-- Mandatory
32+
<!-- Mandatory
3433
3534
Example:
3635
- gdc-analytical-designer: https://github.com/gooddata/gdc-analytical-designer/pull/2072

Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
66
## Getting started
77
- [GoodData.UI Documentation](http://sdk.gooddata.com/gooddata-ui/)
8-
- [GoodData.UI Live Examples](https://gooddata-examples.herokuapp.com/)
98
- [Stack Overflow](https://stackoverflow.com/questions/tagged/gooddata)
109

1110
### Usage
@@ -52,18 +51,6 @@ These commands may come in handy while developing:
5251
| `yarn examples-server` | serve built Live Examples - see `/examples/server/src` |
5352
| `yarn examples-testcafe` | run testcafe tests against `localhost:8999` |
5453

55-
### Deploy to heroku.com
56-
When you deploy this repo to heroku, it serves *GoodData.UI Live Examples*.
57-
Relevant tasks are in `Procfile` and `package.json`.
58-
59-
```bash
60-
# run in the project directory
61-
heroku login
62-
heroku create <your-app-name>
63-
heroku config:set DOMAIN_ADMIN_USERNAME=x@gooddata.com DOMAIN_ADMIN_PASSWORD=xy PROJECT_ID_TO_ASSIGN=xms7ga4tf3g3nzucd8380o2bev8oeknp
64-
git push heroku HEAD:master
65-
heroku open
66-
```
6754
### Enable Geo Chart for Storybook and Live Examples
6855
Geo chart uses Mapbox to render map which requires a Mapbox access token.
6956
- Register an account and create Mapbox access token at [guide](https://docs.mapbox.com/help/how-mapbox-works/access-tokens/)
@@ -81,7 +68,13 @@ cd <repository-folder>
8168
yarn install --pure-lockfile
8269
yarn examples
8370
```
84-
Then open https://localhost:8999 and login using Live Examples account (you can [create one here](https://gooddata-examples.herokuapp.com/registration)).
71+
Then open https://localhost:8999
72+
73+
### Run testcafe against locally running examples
74+
Make sure the examples are running locally (previous step)
75+
```bash
76+
yarn examples-testcafe
77+
```
8578

8679
### Run Storybook locally
8780
- Run storybook with token stored in `.env` for more secure

gdc-ci.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,3 @@ rpm-build:
1313
test-storybook:
1414
- export STORYBOOK_MAPBOX_ACCESS_TOKEN="$MAPBOX_TOKEN"
1515
- yarn test-storybook
16-
17-
# Mandatory env params:
18-
# - HEROKU_API_KEY
19-
# - PULL_REQUEST_ID
20-
# - LIVE_EXAMPLES_ADMIN_PASSWORD
21-
# - LIVE_EXAMPLES_TESTER_PASSWORD
22-
#
23-
# These are injected at https://github.com/zbycz/ci-infra/blob/cacd3/jenkins/jobs/templates/client-macros.yaml#L73
24-
examples-deploy-and-testcafe:
25-
- bash scripts/ci-deploy-and-testcafe.sh
26-
27-
examples-heroku-destroy:
28-
- export HEROKU_APP_NAME="gdc-live-examples-$PULL_REQUEST_ID"
29-
- heroku apps:destroy --app=$HEROKU_APP_NAME --confirm $HEROKU_APP_NAME

scripts/ci-deploy-and-testcafe.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)