-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
39 lines (34 loc) · 973 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: go
go:
- "1.12"
services:
- docker
compiler:
- gcc
env:
global:
- TF_VERSION=linux-x86_64-1.12.0 LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
- GO111MODULE=on
install:
# tesseract
- bash setup/scripts/tesseract_install.sh
# tensorflow
- bash setup/scripts/tensorflow_install.sh
# golang dependencies - run separately, to make sure we get the right tags
# see https://github.com/gen2brain/go-fitz#build-tags
- go get -u -v -tags nopie github.com/gen2brain/go-fitz
before_script:
- go vet -tags nopie ./...
- go build -tags nopie ./...
- go test -tags nopie -run xxxx ./...
- make testenv
script:
- go fmt ./...
- go run golang.org/x/lint/golint $(go list ./... | grep -v /vendor/) # golint doesn't ignore vendor
- go test -tags nopie -race -short -coverprofile=coverage.txt ./...
after_success:
- bash <(curl -s https://codecov.io/bash)
cache:
directories:
- $GOPATH/pkg/mod
- $HOME/.cache/go-build