Include Travis go mod tests (#261)

This commit is contained in:
Matt Joiner 2019-02-13 10:12:14 +11:00 committed by GitHub
parent 7024f5dbb0
commit acfe6d01e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 4 deletions

View File

@ -11,14 +11,25 @@ env:
go: go:
- 1.11.x - 1.11.x
install: install: true
- make deps
jobs:
include:
- stage: "build and test"
name: "gx"
script: script:
- make deps
- bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)
- name: "go mod"
script:
- export GO111MODULE=on
- make mod_deps
- bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh) - bash <(curl -s https://raw.githubusercontent.com/ipfs/ci-helpers/master/travis-ci/run-standard-tests.sh)
cache: cache:
directories: directories:
- $GOPATH/pkg/mod
- $GOPATH/src/gx - $GOPATH/src/gx
notifications: notifications:

View File

@ -10,3 +10,6 @@ deps: gx
publish: publish:
gx-go rewrite --undo gx-go rewrite --undo
mod_deps:
env GO111MODULE=on go mod download