Skip to content

Commit

Permalink
fix travis dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeseandcereal committed Aug 26, 2019
1 parent 25031d6 commit f8f4ddc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@ branches:
only:
- master
- production
language: golang
language: go
go:
- 1.x
before_install:
- go get
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- go test -v
- for pkg in $(go list ./... | grep -v vendor); do go test -coverprofile=$(echo $pkg | tr / -).cover $pkg ; done
- echo "mode: set" > c.out
- "echo 'mode: set' > c.out"
- grep -h -v "^mode:" ./*.cover >> c.out
- rm -f *.cover
after_script:
Expand Down

0 comments on commit f8f4ddc

Please sign in to comment.