Skip to content

Commit

Permalink
Migrate to gomod
Browse files Browse the repository at this point in the history
  • Loading branch information
spolcyn committed Jul 26, 2019
1 parent de37411 commit c92bded
Show file tree
Hide file tree
Showing 17 changed files with 477 additions and 414 deletions.
12 changes: 12 additions & 0 deletions .coverage_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -e
echo "" > coverage.txt

for d in $(go list ./... | grep -v vendor); do
go test -race -coverprofile=profile.out -covermode=atomic $d
if [ -f profile.out ]; then
cat profile.out >> coverage.txt
rm profile.out
fi
done
17 changes: 12 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
language: go

go:
- 1.10.x
- 1.11.x
- 1.12.x

env:
- GO111MODULE=on

before_install:
# We need golang/dep installed to resolve our dependencies
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- dep ensure
- go get -v ./...

script:
- make build test
- ./.coverage_tests.sh

script: make build test
after_success:
- bash <(curl -s https://codecov.io/bash)
321 changes: 0 additions & 321 deletions Gopkg.lock

This file was deleted.

Loading

0 comments on commit c92bded

Please sign in to comment.