Skip to content

Commit

Permalink
Merge pull request #6825 from ipfs/test/webui-e2e-interop
Browse files Browse the repository at this point in the history
test: E2E tests against ipfs-webui HEAD
  • Loading branch information
Stebalien committed Jan 17, 2020
2 parents f513d52 + 182b751 commit 39bf95b
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion .circleci/config.yml
Expand Up @@ -43,6 +43,16 @@ executors:
working_directory: ~/ipfs/go-ipfs
environment:
<<: *default_environment
node-browsers:
docker:
- image: circleci/node:12-browsers
working_directory: ~/ipfs/go-ipfs
environment:
<<: *default_environment
NO_SANDBOX: true
IPFS_REUSEPORT: false
LIBP2P_ALLOW_WEAK_RSA_KEYS: 1
E2E_IPFSD_TYPE: go

jobs:
gobuild:
Expand Down Expand Up @@ -188,7 +198,7 @@ jobs:
working_directory: ~/ipfs/go-ipfs/interop
environment:
IPFS_REUSEPORT: false
LIBP2P_ALLOW_WEAK_RSA_KEYS: true
LIBP2P_ALLOW_WEAK_RSA_KEYS: 1
IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs
- store_test_results:
path: /tmp/test-results
Expand Down Expand Up @@ -255,6 +265,41 @@ jobs:
paths:
- ~/go/pkg/mod
- ~/.cache/go-build/
ipfs-webui:
executor: node-browsers
steps:
- *make_out_dirs
- attach_workspace:
at: /tmp/circleci-workspace
- run:
name: Cloning
command: |
git clone https://github.com/ipfs-shipyard/ipfs-webui.git
git -C ipfs-webui log -1
- restore_cache:
keys:
- v1-ipfs-webui-{{ checksum "~/ipfs/go-ipfs/ipfs-webui/package-lock.json" }}
- v1-ipfs-webui-
- run:
name: Installing dependencies
command: |
npm install
working_directory: ~/ipfs/go-ipfs/ipfs-webui
- run:
name: Running upstream tests (finish early if they fail)
command: |
npm test || circleci-agent step halt
working_directory: ~/ipfs/go-ipfs/ipfs-webui
- run:
name: Running tests with go-ipfs built from current commit
command: npm test
working_directory: ~/ipfs/go-ipfs/ipfs-webui
environment:
IPFS_GO_EXEC: /tmp/circleci-workspace/bin/ipfs
- save_cache:
key: v1-ipfs-webui-{{ checksum "~/ipfs/go-ipfs/ipfs-webui/package-lock.json" }}
paths:
- ~/ipfs/go-ipfs/ipfs-webui/node_modules
workflows:
version: 2
test:
Expand All @@ -273,3 +318,6 @@ workflows:
- go-ipfs-http-client:
requires:
- build
- ipfs-webui:
requires:
- build

0 comments on commit 39bf95b

Please sign in to comment.