Skip to content

Commit 276fda8

Browse files
author
Mikhail Podtserkovskiy
committed
add travis
1 parent 37da228 commit 276fda8

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
language: go
2+
3+
go:
4+
- 1.8.x
5+
6+
install: make get-deps
7+
script: go test ./...
8+
services:
9+
- mysql
10+
11+
env:
12+
- TEST_MYSQL_CONNECTION="root:@(127.0.0.1:3306)/%dbname%?tx_isolation=SERIALIZABLE&parseTime=true"

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ COPY ./ ${GOPATH}/src/jsonwire-grid
55
WORKDIR ${GOPATH}/src/jsonwire-grid
66
ENV CONFIG_PATH ./config.json
77

8-
RUN go get -u github.com/jteeuwen/go-bindata/...
98
RUN make
109

1110
CMD ["service-entrypoint"]

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export CONFIG_PATH=./config.json
2-
all: build
2+
all: get-deps build
33

44
.PHONY: help build fmt clean run test coverage check vet lint doc cfpush
55

@@ -19,7 +19,10 @@ fmt:
1919
gen:
2020
go-bindata -pkg mysql -o storage/migrations/mysql/bindata.go storage/migrations/mysql
2121

22+
get-deps:
23+
go get -u github.com/jteeuwen/go-bindata/...
24+
2225
prepare: fmt gen
2326

2427
run: build
25-
${GOPATH}/bin/service-entrypoint
28+
${GOPATH}/bin/service-entrypoint

0 commit comments

Comments
 (0)