@leverege/build-tools 2.38.1 → 2.38.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,213 +0,0 @@
1
- version: 2.1
2
- #orbs:
3
- # gcp-gcr: circleci/gcp-gcr@0.6.1
4
- executors:
5
- default:
6
- description: >
7
- A debian-based machine executor.
8
- machine: true
9
- jobs:
10
- install:
11
- docker:
12
- - image: $CIRCLE_NODE_IMG
13
- steps:
14
- - checkout
15
- - restore_cache:
16
- keys:
17
- - v1-npm-deps-{{ checksum "package-lock.json" }}
18
- - v1-npm-deps-
19
-
20
- - run:
21
- name: Setup @leverege Token
22
- command: echo \${NPMRC} > ~/.npmrc
23
-
24
- - run: npm install
25
-
26
- - save_cache:
27
- key: v1-npm-deps-{{ checksum "package-lock.json" }}
28
- paths:
29
- - ./node_modules
30
-
31
- - persist_to_workspace:
32
- root: /home/circleci/project
33
- paths:
34
- - ./node_modules
35
-
36
- security-check:
37
- docker:
38
- - image: $CIRCLE_NODE_IMG
39
- steps:
40
- - checkout
41
- - attach_workspace:
42
- at: ~/project
43
- - run:
44
- name: Check for vulnerabilities
45
- command: npm audit --production --audit-level=moderate
46
-
47
- license-check:
48
- docker:
49
- - image: $CIRCLE_NODE_IMG
50
- steps:
51
- - checkout
52
- - attach_workspace:
53
- at: ~/project
54
- - run:
55
- name: Check for LICENSE and README files
56
- command: npm run pkglint
57
-
58
- - run:
59
- name: Check for license violations (e.g. GPL)
60
- command: npx license-checker --production --summary --failOn GPL
61
-
62
- lint:
63
- docker:
64
- - image: $CIRCLE_NODE_IMG
65
- steps:
66
- - checkout
67
- - attach_workspace:
68
- at: ~/project
69
- - run:
70
- name: Lint and save results
71
- command: npm run lint-ci
72
-
73
- - store_test_results:
74
- path: reports
75
-
76
- docs:
77
- docker:
78
- - image: $CIRCLE_NODE_IMG
79
- steps:
80
- - checkout
81
- - attach_workspace:
82
- at: ~/project
83
- - run:
84
- name: Generate docs
85
- command: npx jsdoc -r src -R README.md -d docs
86
- - store_artifacts:
87
- path: docs
88
- prefix: docs
89
-
90
- coverage:
91
- # coverage runs tests, generates coverage, and saves docs
92
- environment:
93
- TZ: 'America/New_York'
94
- docker:
95
- - image: $CIRCLE_NODE_IMG
96
- # IF YOU NEED ANY OF THESE, UNCOMMENT TO USE
97
- # - image: redis
98
- # - image: circleci/mysql:5.7
99
- # environment:
100
- # MYSQL_USER: root
101
- # MYSQL_ROOT_PASSWORD: root
102
- # MYSQL_ALLOW_EMPTY_PASSWORD: true
103
- # MYSQL_HOST: 127.0.0.1
104
- # - image: nsqio/nsq
105
- # command: /nsqlookupd -broadcast-address localhost:4160 -tcp-address 0.0.0.0:4160 -http-address 0.0.0.0:4161
106
-
107
- # - image: nsqio/nsq
108
- # command: >
109
- # /nsqd
110
- # -broadcast-address localhost:4150
111
- # -tcp-address 0.0.0.0:4150
112
- # -http-address 0.0.0.0:4151
113
- # -lookupd-tcp-address localhost:4160
114
-
115
- steps:
116
- - checkout
117
- - attach_workspace:
118
- at: ~/project
119
-
120
- # UNCOMMENT IF YOU NEED DECRYPTING SECRETS
121
- # - run:
122
- # name: Load secrets
123
- # command: npm run decrypt
124
-
125
- - run:
126
- name: Run Tests and Generate Code Coverage
127
- command: npm run coverage
128
-
129
- - run:
130
- name: Check if coverage meets at least 70%
131
- command: npx c8 check-coverage --functions 70 --lines 70 --statements 70
132
-
133
- - store_artifacts:
134
- path: coverage
135
- prefix: coverage
136
-
137
- build:
138
- # build should make dist image and prepare docker file
139
- docker:
140
- - image: $CIRCLE_NODE_IMG
141
-
142
- steps:
143
- - checkout
144
- - attach_workspace:
145
- at: ~/project
146
-
147
- - run:
148
- name: Setup @leverege Token
149
- command: echo \${NPMRC} > ~/.npmrc.ro
150
-
151
- - run:
152
- name: Determine version number and container name
153
- command: |
154
- container="\`node -p \"require('./package.json').leverege.container\"\`"
155
- if [ "\$container" == "undefined" ];
156
- then
157
- container=\$CIRCLE_PROJECT_REPONAME
158
- fi
159
- NODE_IMAGE="\`node -p \"require('./package.json').leverege.nodeimg\"\`"
160
-
161
- echo \$(git describe --tags) > package_version
162
- echo \${container} > container_name
163
- echo \${NODE_IMAGE} > node_img
164
-
165
- - run:
166
- name: Create Dockerfile and build dist directory
167
- command: mkdir -p docker && npm run dockerize \$(git describe --tags)
168
-
169
- - persist_to_workspace:
170
- root: ~/project
171
- paths:
172
- - docker/*
173
- - package_version
174
- - container_name
175
- - node_img
176
-
177
- workflows:
178
- version: 2.1
179
- test-build-deploy:
180
- jobs:
181
- - install:
182
- context: npm
183
- - security-check:
184
- requires:
185
- - install
186
- - license-check:
187
- requires:
188
- - install
189
- - lint:
190
- requires:
191
- - install
192
- - coverage:
193
- requires:
194
- - install
195
- - docs:
196
- requires:
197
- - install
198
- - build:
199
- context: npm
200
- filters:
201
- branches:
202
- only:
203
- - development
204
- - /release-.*/
205
- - master
206
- requires:
207
- - install
208
- - security-check
209
- - license-check
210
- - lint
211
- - coverage
212
- - docs
213
-
File without changes
@@ -1 +0,0 @@
1
- geotile-local.yaml
@@ -1,6 +0,0 @@
1
- #!/bin/bash
2
- #
3
- showInstalling "Geotile Server"
4
-
5
- helm upgrade --install geotile-server leverege/geotile-server \
6
- --values geotile-server/geotile-values.yaml