hook integration tests into travis
This commit is contained in:
parent
e5a1f3c999
commit
f8987d1105
|
@ -11,3 +11,6 @@ before_install:
|
||||||
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
|
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
|
||||||
script:
|
script:
|
||||||
- $HOME/gopath/bin/goveralls -service=travis-ci
|
- $HOME/gopath/bin/goveralls -service=travis-ci
|
||||||
|
- bash test/compile_with_go110.sh
|
||||||
|
- bash test/compile_with_go111.sh
|
||||||
|
- bash test/compile_with_go111_inside_gopath.sh
|
||||||
|
|
|
@ -4,9 +4,11 @@
|
||||||
# under go 1.10, which was the last release before introduction of the new go
|
# under go 1.10, which was the last release before introduction of the new go
|
||||||
# module system.
|
# module system.
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
--rm \
|
--rm \
|
||||||
-v $(pwd)/some-program:/src \
|
-v $DIR/some-program:/src \
|
||||||
-w /src \
|
-w /src \
|
||||||
golang:1.10 \
|
golang:1.10 \
|
||||||
bash -c "go get github.com/alexflint/go-arg && go build -o /dev/null"
|
bash -c "go get github.com/alexflint/go-arg && go build -o /dev/null"
|
||||||
|
|
|
@ -3,9 +3,11 @@
|
||||||
# This test checks that we can compile some code that depends on go-arg when using go 1.11
|
# This test checks that we can compile some code that depends on go-arg when using go 1.11
|
||||||
# with the new go module system active.
|
# with the new go module system active.
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
--rm \
|
--rm \
|
||||||
-v $(pwd)/some-program:/src \
|
-v $DIR/some-program:/src \
|
||||||
-w /src \
|
-w /src \
|
||||||
golang:1.11 \
|
golang:1.11 \
|
||||||
go build -o /dev/null
|
go build -o /dev/null
|
||||||
|
|
|
@ -3,9 +3,11 @@
|
||||||
# This test checks that we can correctly "go get" and then use the go-arg package using
|
# This test checks that we can correctly "go get" and then use the go-arg package using
|
||||||
# go 1.11 when the code is within the GOPATH (in which case modules are disabled by default).
|
# go 1.11 when the code is within the GOPATH (in which case modules are disabled by default).
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
docker run \
|
docker run \
|
||||||
--rm \
|
--rm \
|
||||||
-v $(pwd)/some-program:/go/src/some-program \
|
-v $DIR/some-program:/go/src/some-program \
|
||||||
-w /go/src/some-program \
|
-w /go/src/some-program \
|
||||||
golang:1.11 \
|
golang:1.11 \
|
||||||
bash -c "go get github.com/alexflint/go-arg && go build -o /dev/null"
|
bash -c "go get github.com/alexflint/go-arg && go build -o /dev/null"
|
||||||
|
|
Loading…
Reference in New Issue