Skip to content

Commit

Permalink
subject to golang-standards/project-layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ynqa committed Dec 26, 2019
1 parent 8f53c5d commit bccc013
Show file tree
Hide file tree
Showing 81 changed files with 178 additions and 471 deletions.
16 changes: 9 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
language: go

go:
- "1.10"
- "1.11"
- "1.12.x"
- "1.13.x"
- tip

services:
Expand All @@ -13,20 +13,22 @@ addons:
packages:
- docker-ce

env:
- GO111MODULE=on

before_install:
- go get github.com/golang/dep/...
- go get golang.org/x/lint/golint
- go get github.com/mattn/goveralls

install:
- $GOPATH/bin/dep ensure
- go mod vendor

script:
- make test
- make lint
- go test -cover -b `go list ./...`
- golint `go list ./...`

after_script: |
if [[ $TRAVIS_GO_VERSION == 1.11* ]] && [[ "$TRAVIS_BRANCH" == "master" ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
if [[ $TRAVIS_GO_VERSION == 1.13* ]] && [[ "$TRAVIS_BRANCH" == "master" ]] && [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
goveralls -repotoken ${COVERALLS_TOKEN}
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
docker build -t ynqa/wego:latest .
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN dep ensure -v -vendor-only
RUN go build -v -o wego .

FROM busybox
COPY --from=builder /go/src/github.com/ynqa/wego/wego /usr/local/bin/wego
COPY --from=builder /go/src/github.com/ynqa/wego/pkg/wego /usr/local/bin/wego

ENTRYPOINT ["wego"]
CMD ["help"]
328 changes: 0 additions & 328 deletions Gopkg.lock

This file was deleted.

Loading

0 comments on commit bccc013

Please sign in to comment.