Skip to content

Commit 8aa7357

Browse files
committed
make: only bootstrap ipfs node if explicitly setting up integration env
1 parent 1614352 commit 8aa7357

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ before_script:
2727
- go build ./...
2828
- go test -run xxxx ./...
2929
- make testenv
30-
30+
3131
script:
3232
- go fmt ./...
3333
- golint $(go list ./... | grep -v /vendor/) # golint doesn't ignore vendor

Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,12 @@ testenv:
5454
@echo "=================== preparing test env ==================="
5555
docker-compose -f test/docker-compose.yml up -d
5656
sleep $(WAIT)
57+
@echo "=================== done ==================="
58+
59+
.PHONY: testenv-integration
60+
testenv-integration: testenv
5761
@echo Connecting testenv IPFS node to RTrade IPFS node for test assets
5862
ipfs --api=/ip4/127.0.0.1/tcp/5001 swarm connect /ip4/172.218.49.115/tcp/5002/ipfs/Qmf964tiE9JaxqntDsSBGasD4aaofPQtfYZyMSJJkRrVTQ
59-
@echo "=================== done ==================="
6063

6164
# Run simple checks
6265
.PHONY: check

0 commit comments

Comments
 (0)