27 lines
461 B
YAML
27 lines
461 B
YAML
language: go
|
|
|
|
go_import_path: github.com/pingcap/tidb
|
|
|
|
go:
|
|
- "1.12"
|
|
|
|
env:
|
|
- TRAVIS_COVERAGE=0
|
|
- TRAVIS_COVERAGE=1
|
|
|
|
# Run coverage tests.
|
|
matrix:
|
|
fast_finish: true
|
|
allow_failures:
|
|
- go: "1.12"
|
|
env: TRAVIS_COVERAGE=1
|
|
|
|
before_install:
|
|
# create /logs/unit-test for unit test.
|
|
- sudo mkdir /logs
|
|
- sudo touch /logs/unit-test
|
|
# See https://github.com/golang/go/issues/12933
|
|
- bash gitcookie.sh
|
|
script:
|
|
- make dev upload-coverage
|