Skip to content

Commit

Permalink
mod: add go.mod
Browse files Browse the repository at this point in the history
  • Loading branch information
bobheadxi committed Apr 17, 2019
1 parent a067b1d commit ef33f3d
Show file tree
Hide file tree
Showing 7 changed files with 372 additions and 778 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Expand Up @@ -14,10 +14,9 @@ install:
# tensorflow
- bash setup/scripts/tensorflow_install.sh
# golang dependencies
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
- go get -u golang.org/x/lint/golint
- go get -u -v -tags nopie github.com/gen2brain/go-fitz # https://github.com/gen2brain/go-fitz#build-tags
- dep ensure -v
- GO111MODULE=on go mod download

before_script:
- go vet -tags nopie ./...
Expand Down
5 changes: 2 additions & 3 deletions Dockerfile
Expand Up @@ -6,7 +6,7 @@ ARG LENSVERSION
ARG TENSORFLOW_DIST

# Mount source code
ENV BUILD_HOME=/go/src/github.com/RTradeLtd/Lens
ENV BUILD_HOME=/go/src/github.com/RTradeLtd/Lens GO111MODULE=on
ADD . ${BUILD_HOME}
WORKDIR ${BUILD_HOME}

Expand All @@ -19,8 +19,7 @@ ENV LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib
## Tesseract
RUN bash setup/scripts/tesseract_install.sh
## Golang dependencies
RUN curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
RUN dep ensure -v
RUN go mod vendor
## Go-fitz
RUN go get -u -tags gcc7 github.com/gen2brain/go-fitz

Expand Down

0 comments on commit ef33f3d

Please sign in to comment.