Skip to content

Commit

Permalink
bring back docker
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Oct 2, 2018
1 parent b2803c1 commit a6c880a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
language: go

services:
- docker

sudo: false

matrix:
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ ADD . $GOPATH/src/github.com/gobuffalo/buffalo-auth

WORKDIR $GOPATH/src/github.com/gobuffalo/buffalo-auth
RUN go install -v
RUN go test -v ./...
RUN go test -race -tags sqlite -v ./...

WORKDIR $GOPATH/src

RUN buffalo new --db-type=sqlite3 --skip-webpack app
RUN buffalo new --db-type=sqlite3 --skip-webpack app
WORKDIR $GOPATH/src/app

RUN buffalo g auth
RUN buffalo g auth
RUN buffalo db migrate
RUN buffalo test -v ./...

Expand Down
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ test:

ci-test:
$(GO_BIN) test -tags ${TAGS} -race ./...
docker build .

lint:
gometalinter --vendor ./... --deadline=1m --skip=internal
Expand Down

0 comments on commit a6c880a

Please sign in to comment.