Skip to content

Commit

Permalink
Run JS interop in CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Jun 5, 2019
1 parent 5311ac0 commit fa3bad5
Showing 1 changed file with 47 additions and 4 deletions.
51 changes: 47 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2.0

aliases:
make_out_dirs: &make_out_dirs
run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_TEST_REPORTS/{unit,sharness}
run: mkdir -p $CIRCLE_ARTIFACTS $CIRCLE_WORKSPACE $CIRCLE_TEST_REPORTS/{unit,sharness}
restore_gomod: &restore_gomod
restore_cache:
keys:
Expand All @@ -29,14 +29,14 @@ defaults: &defaults
CIRCLE: 1
SERVICE: circle-ci
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_WORKSPACE: /tmp/circleci-workspace
TEST_VERBOSE: 1
TRAVIS: 1

docker:
- image: circleci/golang:1.12

jobs:
gobuild:
docker:
- image: circleci/golang:1.12
<<: *defaults
steps:
- checkout
Expand All @@ -53,6 +53,8 @@ jobs:
- *store_gomod
golint:
<<: *defaults
docker:
- image: circleci/golang:1.12
steps:
- checkout
- *make_out_dirs
Expand All @@ -61,6 +63,8 @@ jobs:
make -O test_go_lint
- *store_gomod
gotest:
docker:
- image: circleci/golang:1.12
<<: *defaults
steps:
- checkout
Expand Down Expand Up @@ -88,6 +92,8 @@ jobs:
- store_artifacts:
path: /tmp/circleci-test-results
sharness:
docker:
- image: circleci/golang:1.12
<<: *defaults
steps:
- run: sudo apt install socat
Expand All @@ -114,6 +120,39 @@ jobs:
path: /tmp/circleci-artifacts
- store_artifacts:
path: /tmp/circleci-test-results
build-interop:
docker:
- image: circleci/golang:1.12
<<: *defaults
steps:
- checkout
- *make_out_dirs
- *restore_gomod
- run: make build
- run: cp cmd/ipfs/ipfs /tmp/circleci-workspace
- persist_to_workspace:
root: /tmp/circleci-workspace
paths:
- ipfs
- *store_gomod
interop:
docker:
- image: circleci/node:10
<<: *defaults
environment:
IPFS_GO_EXEC: /tmp/circleci-workspace/ipfs
steps:
- *make_out_dirs
- attach_workspace:
at: /tmp/circleci-workspace
- run: git clone https://github.com/ipfs/interop.git
- run:
command: npm install
working_directory: ~/ipfs/go-ipfs/interop
- run:
command: npm test
working_directory: ~/ipfs/go-ipfs/interop


workflows:
version: 2
Expand All @@ -123,3 +162,7 @@ workflows:
- golint
- gotest
- sharness
- build-interop
- interop:
requires:
- build-interop

0 comments on commit fa3bad5

Please sign in to comment.