Skip to content

Commit

Permalink
Change to not use docker in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
duck8823 committed Nov 26, 2017
1 parent 12f6cb8 commit 0457c49
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
sudo:
- required
services:
- docker
language: go
go:
- 1.9
before_install:
- docker build -t photoshelf/photoshelf-storage .
- go get github.com/golang/dep/...
- go get github.com/mattn/goveralls
install:
- dep ensure
script:
- test "TRAVIS_EVENT_TYPE" == "cron" && docker run --rm photoshelf/photoshelf-storage go test -bench=. ./infrastructure/datastore/... -run Benchmark -v -benchmem -benchtime 5s || echo "Skip benchmark"
- docker run --rm -e TRAVIS_BRANCH=$TRAVIS_BRANCH photoshelf/photoshelf-storage goveralls -repotoken $COVERALLS_TOKEN
- test "$TRAVIS_EVENT_TYPE" == "cron" && go test -bench=. ./infrastructure/datastore/... -run Benchmark -v -benchmem -benchtime 5s || echo "Skip benchmark"
- goveralls -service=travis-ci
after_success:
- test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash
notifications:
Expand Down
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ WORKDIR /go/src/github.com/photoshelf/photoshelf-storage

ADD . .

RUN go get -u github.com/golang/dep/cmd/dep github.com/mattn/goveralls
RUN dep ensure

RUN go build
Expand Down

0 comments on commit 0457c49

Please sign in to comment.