-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitlab-ci.yml
38 lines (36 loc) · 1.33 KB
/
.gitlab-ci.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
# You can override the included template(s) by including variable overrides
# See https://docs.gitlab.com/ee/user/application_security/sast/#customizing-the-sast-settings
# Note that environment variables can be set in several places
# See https://docs.gitlab.com/ee/ci/variables/#priority-of-environment-variables
stages:
- test
testing:
image: main-registry.gitlab.in.here.com/design/here-design-system/tools/hds-deployment-ci/node:lts-hydrogen
stage: test
before_script:
- command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
- chmod 644 ~/.ssh/known_hosts
- echo "$SSH_CONFIG" >> ~/.ssh/config
script:
- git clone $HDS_WEB_REPOSITORY_URL hdsweb
- cd hdsweb
- yarn global add lerna
- yarn install --offline --frozen-lockfile
- yarn build:cli
- yarn link:cli
- yarn build:icons --repo=/builds/design/here-design-system/design-assets/hds-icon-library --internalRepo=${INTERNAL_ICON_REPOSITORY_URL}
- yarn build:postcss
- yarn build:style
- cd packages/hds-base
- yarn build
- cd ../hds-iconlibrary
- yarn build
only:
refs:
- merge_requests
- master