-
Notifications
You must be signed in to change notification settings - Fork 22
/
config.yml
91 lines (85 loc) · 2.65 KB
/
config.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
aliases:
- &working_directory ~/commercetools-typescript-sdk
- &restore_yarn_cache
name: 'Restoring yarn cache'
keys:
- v1-yarn-cache-{{ checksum "yarn.lock" }}
- &save_yarn_cache
name: 'Saving yarn cache'
key: v1-yarn-cache-{{ checksum "yarn.lock" }}
# Persisting to the workspace is always relative to the root which is our working directory.
# https://circleci.com/docs/2.0/configuration-reference/#persist_to_workspace
paths:
- .cache
- node_modules
executors:
node_14:
docker:
- image: cimg/node:14.19.0
version: 2.1
jobs:
build_and_test:
executor: node_14
working_directory: *working_directory
steps:
- checkout
- restore_cache: *restore_yarn_cache
- run:
name: Installing dependencies
command: yarn install --frozen-lockfile
- save_cache: *save_yarn_cache
- run:
name: Install example dependencies
command: |
cd examples
yarn global add puppeteer
yarn install --frozen-lockfile
- run:
name: Building packages
command: yarn build
- run:
name: Running example tests
command: |
cd examples
yarn test
- run:
name: Running tests
command: yarn test --coverage
- run:
name: Send coverage report
command: yarn coverage
- store_artifacts:
path: packages/ml-sdk/test-results
- store_artifacts:
path: packages/platform-sdk/test-results
- store_test_results:
path: packages/ml-sdk/test-results
- store_test_results:
path: packages/platform-sdk/test-results
update_ml_sdk_from_spec:
executor: node_14
working_directory: ~/commercetools-typescript-spec
steps:
- checkout
- run:
name: Configure git
command: git config --global user.email "$GIT_AUTHOR_EMAIL" && git config --global user.name "$GIT_AUTHOR_NAME"
- add_ssh_keys:
fingerprints:
- "bd:28:56:34:9d:80:55:fb:74:c4:1f:9d:f4:4e:f1:4b"
- run:
name: Installing Java
command: apt update && apt install default-jre -y
- run:
name: Installing RMF cli
command: export VRAP_VERSION=1.0.0-20200304142749 && curl -o- -s https://raw.githubusercontent.com/vrapio/rmf-codegen/master/scripts/install.sh | bash
- restore_cache: *restore_yarn_cache
- run:
name: Installing dependencies
command: yarn install --frozen-lockfile
- save_cache: *save_yarn_cache
workflows:
version: 2
validate_spec:
jobs:
- build_and_test