@cryptotaxi247 / kubo / commits / 692af948a

test: E2E tests against ipfs-webui HEAD

This adds interop/regression tests against ipfs-webui repo. License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>

Marcin Rataj committed Jan 15, 2020 at 14:40 UTC 692af948ac79666995c4b9faa03880e2ca7b8903
1 file changed +49 -1
.circleci/config.yml
+49 -1
@@ -43,6 +43,16 @@ executors:
43 working_directory: ~/ipfs/go-ipfs
44 environment:
45 <<: *default_environment
46 + node-browsers:
47 + docker:
48 + - image: circleci/node:10-browsers
49 + working_directory: ~/ipfs/go-ipfs
50 + environment:
51 + <<: *default_environment
52 + NO_SANDBOX: true
53 + IPFS_REUSEPORT: false
54 + LIBP2P_ALLOW_WEAK_RSA_KEYS: 1
55 + E2E_IPFSD_TYPE: go
56
57 jobs:
58 gobuild:
@@ -188,7 +198,7 @@ jobs:
198 working_directory: ~/ipfs/go-ipfs/interop
199 environment:
200 IPFS_REUSEPORT: false
191 - LIBP2P_ALLOW_WEAK_RSA_KEYS: true
201 + LIBP2P_ALLOW_WEAK_RSA_KEYS: 1
202 IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs
203 - store_test_results:
204 path: /tmp/test-results
@@ -255,6 +265,41 @@ jobs:
265 paths:
266 - ~/go/pkg/mod
267 - ~/.cache/go-build/
268 + ipfs-webui:
269 + executor: node-browsers
270 + steps:
271 + - *make_out_dirs
272 + - attach_workspace:
273 + at: /tmp/circleci-workspace
274 + - run:
275 + name: Cloning
276 + command: |
277 + git clone https://github.com/ipfs-shipyard/ipfs-webui.git
278 + git -C ipfs-webui log -1
279 + - restore_cache:
280 + keys:
281 + - v1-ipfs-webui-{{ checksum "~/ipfs/go-ipfs/ipfs-webui/package-lock.json" }}
282 + - v1-ipfs-webui-
283 + - run:
284 + name: Installing dependencies
285 + command: |
286 + npm install
287 + working_directory: ~/ipfs/go-ipfs/ipfs-webui
288 + - run:
289 + name: Running upstream tests (finish early if they fail)
290 + command: |
291 + npm test || circleci-agent step halt
292 + working_directory: ~/ipfs/go-ipfs/ipfs-webui
293 + - run:
294 + name: Running tests with go-ipfs built from current commit
295 + command: npm test
296 + working_directory: ~/ipfs/go-ipfs/ipfs-webui
297 + environment:
298 + IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs
299 + - save_cache:
300 + key: v1-ipfs-webui-{{ checksum "~/ipfs/go-ipfs/ipfs-webui/package-lock.json" }}
301 + paths:
302 + - ~/ipfs/go-ipfs/ipfs-webui/node_modules
303 workflows:
304 version: 2
305 test:
@@ -273,3 +318,6 @@ workflows:
318 - go-ipfs-http-client:
319 requires:
320 - build
321 + - ipfs-webui:
322 + requires:
323 + - build