forked from mattn/anko
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
20 lines (15 loc) · 842 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: go
go:
- 1.6.x
- 1.7.x
- 1.8.x
- 1.9.x
- 1.10.x
env:
secure: "ELC4rD8nn2l5T48WYbTfcbwGGBmNxl7LAu05hgx5AB9/KA+oD3oBKIJkZqD512gJ31Gtyla/hG9QOgU7LikfWdpGuJjVILy01ZqtgP5SSKsrTdlln1D5pK1ZyHJNrEPevb3W5PYn9ahHnjKGtpobXj4/E0sCXfRPH67jv9hffYs="
before_install:
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.(1[0-9]|[8-9])\.[0-9]$ ]]; then go get -u github.com/haya14busa/goverage; fi
script:
- if [[ "$TRAVIS_GO_VERSION" =~ ^1\.(1[0-9]|[8-9])\.[0-9]$ ]]; then goverage -v -coverprofile=coverage.txt -covermode=count . ./ast/astutil ./vm ./core ./packages; else go test -v github.com/mattn/anko github.com/mattn/anko/ast/astutil github.com/mattn/anko/core github.com/mattn/anko/packages; go test -v -coverprofile=coverage.txt -covermode=count github.com/mattn/anko/vm; fi
after_success:
- bash <(curl -s https://codecov.io/bash)