forked from gooddata/gooddata-react-components
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgdc-ci.yaml
29 lines (27 loc) · 1.03 KB
/
gdc-ci.yaml
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
# defaults - https://github.com/gooddata/gdc-ci/blob/develop/components/client/gdc-ci.yaml
before:
- ci-yarn-install
pull-request:
- yarn validate-ci
- JEST_SUITE_NAME="GoodData React Components Unit Tests" JEST_JUNIT_OUTPUT="./ci/results/test-results.xml" jest --config=jest.ci.js
dist:
- export STORYBOOK_MAPBOX_ACCESS_TOKEN="$MAPBOX_TOKEN"
- yarn build-storybook
rpm-build:
- export STORYBOOK_MAPBOX_ACCESS_TOKEN="$MAPBOX_TOKEN"
- yarn build-storybook
test-storybook:
- export STORYBOOK_MAPBOX_ACCESS_TOKEN="$MAPBOX_TOKEN"
- yarn test-storybook
# Mandatory env params:
# - HEROKU_API_KEY
# - PULL_REQUEST_ID
# - LIVE_EXAMPLES_ADMIN_PASSWORD
# - LIVE_EXAMPLES_TESTER_PASSWORD
#
# These are injected at https://github.com/zbycz/ci-infra/blob/cacd3/jenkins/jobs/templates/client-macros.yaml#L73
examples-deploy-and-testcafe:
- bash scripts/ci-deploy-and-testcafe.sh
examples-heroku-destroy:
- export HEROKU_APP_NAME="gdc-live-examples-$PULL_REQUEST_ID"
- heroku apps:destroy --app=$HEROKU_APP_NAME --confirm $HEROKU_APP_NAME