Skip to content

Commit 0d14f00

Browse files
committed
added test-datastore and fixed circleci test
1 parent ef83ce3 commit 0d14f00

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Makefile

+5-2
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,18 @@ build-docker:
1414
docker build -t iron/functions:latest .
1515

1616
test:
17-
go test -v $(shell glide nv | grep -v examples | grep -v tool | grep -v fnctl)
17+
go test -v $(shell go list ./... | grep -v vendor | grep -v examples | grep -v tool | grep -v fnctl)
1818
cd fnctl && $(MAKE) test
1919

20+
test-datastore:
21+
cd api/datastore && go test -v
22+
2023
test-docker:
2124
docker run -ti --privileged --rm -e LOG_LEVEL=debug \
2225
-v /var/run/docker.sock:/var/run/docker.sock \
2326
-v $(DIR):/go/src/github.com/iron-io/functions \
2427
-w /go/src/github.com/iron-io/functions iron/go:dev go test \
25-
-v $(shell glide nv | grep -v examples | grep -v tool | grep -v fnctl)
28+
-v $(shell go list ./... | grep -v vendor | grep -v examples | grep -v tool | grep -v fnctl | grep -v datastore)
2629

2730
run:
2831
./functions

circle.yml

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ test:
3131
override:
3232
- make test-docker:
3333
pwd: $GO_PROJECT
34+
- make test-datastore:
35+
pwd: $GO_PROJECT
3436

3537
deployment:
3638
release:

0 commit comments

Comments
 (0)