Skip to content

Commit

Permalink
add travis support
Browse files Browse the repository at this point in the history
  • Loading branch information
niqdev committed Jul 11, 2019
1 parent 4d1502c commit a742c7f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
language: go

script:
- make test
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ ifndef CMD_OPERATOR_SDK
$(error "operator-sdk" not found)
endif

.PHONY: test
test:
dep ensure
go test -v ./...

.PHONY: all
all: requirements
all: requirements test

.PHONY: docker-build
docker-build: requirements
dep ensure
docker-build: all
operator-sdk build $(DOCKER_IMAGE):${tag}

.PHONY: docker-login
Expand Down

0 comments on commit a742c7f

Please sign in to comment.