attempt to make travis happy

pull/1284/head
cornfeedhobo 2019-06-29 17:28:34 -05:00
parent 92354cab6f
commit 80c4f56a74
No known key found for this signature in database
GPG Key ID: 724357093F994B26
1 changed files with 22 additions and 5 deletions

View File

@ -1,5 +1,11 @@
#!/usr/bin/env bats
##
# Travis notes:
# - `which go`
# - /home/travis/.gimme/versions/go1.7.4.linux.amd64/bin/go
#
load ../test_helper
load ../../lib/helpers
load ../../lib/composure
@ -9,25 +15,36 @@ load ../../lib/composure
[[ $(type -t _go_pathmunge_wrap) = 'function' ]]
}
@test 'debug where is go in travis' {
assert_equal $(which go) 'dummy'
}
@test 'debug gopath in travis' {
assert_equal $(go env GOPATH) 'dummy'
}
@test 'debug gopath in travis 2' {
assert_equal $GOPATH 'dummy'
}
@test 'debug goroot in travis' {
assert_equal $(go env GOROOT) 'dummy'
}
@test 'debug goroot in travis 2' {
assert_equal $GOROOT 'dummy'
}
@test 'debug goroot in travis, after load' {
export GOROOT='/tmp'
load ../../plugins/available/go.plugin
assert_equal $GOROOT 'dummy'
assert_equal $(go env GOROOT) 'dummy'
}
@test 'debug goroot in travis, after load 2' {
export GOROOT='/tmp'
load ../../plugins/available/go.plugin
assert_equal $GOROOT 'dummy'
}
@test 'plugins go: single entry in GOPATH' {
export GOROOT='/baz'
export GOPATH='/foo'