Skip to content

Commit 83d4a2f

Browse files
authored
Merge pull request #411 from kuzzleio/6.1.4-proposal
Release 6.1.4
2 parents 34c96e9 + 5295aa8 commit 83d4a2f

File tree

746 files changed

+18065
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

746 files changed

+18065
-21
lines changed

.ci/doc/config.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
3+
snippets:
4+
mount: /mnt
5+
path: doc/**/snippets/*.test.yml
6+
templates: /mnt/.ci/doc/templates
7+
8+
runners:
9+
default: node
10+
11+
node:
12+
service: doc-runner-node
13+
path: /var/snippets/node
14+
lint:
15+
global: true
16+
cmd: eslint -c /mnt/.ci/doc/eslint.json {{ snippet.dir }}
17+
before: timeout -t 600 ash -c 'until stat /tmp/runner_ready_to_lint; do sleep 1; done'
18+
run:
19+
cmd: node {{ snippet.source }}
20+
before: timeout -t 600 ash -c 'until stat /tmp/runner_is_ready && curl -f -s -o /dev/null http://kuzzle:7512/_now; do sleep 1; done'
21+
22+
web:
23+
service: doc-runner-web
24+
path: /var/snippets/web
25+
lint:
26+
global: true
27+
cmd: eslint -c /mnt/.ci/doc/eslint.json {{ snippet.dir }}/*.html
28+
before: timeout 600 bash -c 'until stat /tmp/runner_ready_to_lint; do sleep 1; done'
29+
run:
30+
cmd: node puppeteer.js {{ snippet.dir }}/{{ snippet.source }}
31+
before: timeout 600 bash -c 'until stat /tmp/runner_is_ready && curl -f -s -o /dev/null http://kuzzle:7512/_now; do sleep 1; done'
32+
33+
webpack:
34+
service: doc-runner-webpack
35+
path: /var/snippets/webpack
36+
lint:
37+
global: true
38+
cmd: eslint -c /mnt/.ci/doc/eslint.json {{ snippet.dir }}
39+
before: timeout 600 bash -c 'until stat /tmp/runner_ready_to_lint; do sleep 1; done'
40+
build:
41+
cmd: node webpackBuild.js {{ snippet.dir }}/{{ snippet.source }}
42+
before: timeout 600 bash -c 'until stat /tmp/runner_is_ready; do sleep 1; done'
43+
run:
44+
cmd: node puppeteer.js /tmp/{{ snippet.name }}/index.html
45+
before: timeout 600 bash -c 'until curl -f -s -o /dev/null http://kuzzle:7512/_now; do sleep 1; done'
46+
47+

.ci/doc/docker-compose.yml

Lines changed: 138 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
version: '3'
2+
3+
services:
4+
kuzzle:
5+
image: kuzzleio/kuzzle
6+
ports:
7+
- '7512:7512'
8+
cap_add:
9+
- SYS_PTRACE
10+
depends_on:
11+
- redis
12+
- elasticsearch
13+
container_name: kuzzle
14+
environment:
15+
- kuzzle_services__db__client__host=http://elasticsearch:9200
16+
- kuzzle_services__internalCache__node__host=redis
17+
- kuzzle_services__memoryStorage__node__host=redis
18+
- NODE_ENV=production
19+
20+
redis:
21+
image: redis:3.2
22+
23+
elasticsearch:
24+
image: kuzzleio/elasticsearch:5.6.10
25+
ulimits:
26+
nofile: 65536
27+
environment:
28+
- cluster.name=kuzzle
29+
- 'ES_JAVA_OPTS=-Xms256m -Xmx256m'
30+
31+
doc-tests:
32+
image: kuzzleio/snippets-tests
33+
privileged: true
34+
ports:
35+
- '9229:9229'
36+
depends_on:
37+
- kuzzle
38+
- doc-runner-node
39+
- doc-runner-web
40+
- doc-runner-webpack
41+
volumes:
42+
- ../..:/mnt
43+
- /var/run/docker.sock:/var/run/docker.sock
44+
- snippets:/var/snippets
45+
environment:
46+
- CONFIG_FILE=/mnt/.ci/doc/config.yml
47+
48+
doc-runner-node:
49+
image: node:10-alpine
50+
volumes:
51+
- ../..:/mnt
52+
- snippets:/var/snippets
53+
command: >
54+
ash -c '
55+
mkdir -p /var/snippets/node;
56+
apk add --no-cache curl;
57+
npm install -g eslint;
58+
cd /var/snippets/node;
59+
npm install \
60+
bluebird \
61+
/mnt/ \
62+
eslint \
63+
eslint-plugin-html \
64+
eslint-plugin-import \
65+
eslint-plugin-node \
66+
eslint-plugin-promise \
67+
eslint-plugin-standard;
68+
touch /tmp/runner_ready_to_lint;
69+
touch /tmp/runner_is_ready;
70+
tail -f /dev/null
71+
'
72+
73+
doc-runner-web:
74+
image: buildkite/puppeteer:latest
75+
command: >
76+
bash -c '
77+
mkdir -p /var/snippets/web;
78+
apt-get update;
79+
apt-get install -y curl;
80+
npm install -g \
81+
eslint;
82+
cd /mnt;
83+
npm install;
84+
cd /var/snippets/web;
85+
cp /mnt/.ci/doc/puppeteer.js /var/snippets/web/;
86+
npm install \
87+
/mnt/ \
88+
puppeteer \
89+
eslint \
90+
eslint-plugin-html \
91+
eslint-plugin-import \
92+
eslint-plugin-node \
93+
eslint-plugin-promise \
94+
eslint-plugin-standard;
95+
touch /tmp/runner_ready_to_lint;
96+
touch /tmp/runner_is_ready;
97+
tail -f /dev/null
98+
'
99+
volumes:
100+
- ../..:/mnt
101+
- snippets:/var/snippets
102+
103+
doc-runner-webpack:
104+
image: buildkite/puppeteer:latest
105+
command: >
106+
bash -c '
107+
mkdir -p /var/snippets/webpack;
108+
apt-get update;
109+
apt-get install -y curl;
110+
npm install -g \
111+
eslint;
112+
cd /var/snippets/webpack;
113+
cp /mnt/.ci/doc/puppeteer.js /var/snippets/webpack/;
114+
cp /mnt/.ci/doc/webpackBuild.js /var/snippets/webpack/;
115+
npm install \
116+
/mnt/ \
117+
babel-loader \
118+
@babel/core \
119+
puppeteer \
120+
html-webpack-plugin \
121+
webpack \
122+
webpack-cli \
123+
eslint \
124+
eslint-plugin-html \
125+
eslint-plugin-import \
126+
eslint-plugin-node \
127+
eslint-plugin-promise \
128+
eslint-plugin-standard;
129+
touch /tmp/runner_ready_to_lint;
130+
touch /tmp/runner_is_ready;
131+
tail -f /dev/null
132+
'
133+
volumes:
134+
- ../..:/mnt
135+
- snippets:/var/snippets
136+
137+
volumes:
138+
snippets:

0 commit comments

Comments
 (0)