attempt to make travis happy
parent
92354cab6f
commit
80c4f56a74
|
|
@ -1,5 +1,11 @@
|
||||||
#!/usr/bin/env bats
|
#!/usr/bin/env bats
|
||||||
|
|
||||||
|
##
|
||||||
|
# Travis notes:
|
||||||
|
# - `which go`
|
||||||
|
# - /home/travis/.gimme/versions/go1.7.4.linux.amd64/bin/go
|
||||||
|
#
|
||||||
|
|
||||||
load ../test_helper
|
load ../test_helper
|
||||||
load ../../lib/helpers
|
load ../../lib/helpers
|
||||||
load ../../lib/composure
|
load ../../lib/composure
|
||||||
|
|
@ -9,25 +15,36 @@ load ../../lib/composure
|
||||||
[[ $(type -t _go_pathmunge_wrap) = 'function' ]]
|
[[ $(type -t _go_pathmunge_wrap) = 'function' ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
@test 'debug where is go in travis' {
|
|
||||||
assert_equal $(which go) 'dummy'
|
|
||||||
}
|
|
||||||
|
|
||||||
@test 'debug gopath in travis' {
|
@test 'debug gopath in travis' {
|
||||||
assert_equal $(go env GOPATH) 'dummy'
|
assert_equal $(go env GOPATH) 'dummy'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test 'debug gopath in travis 2' {
|
||||||
|
assert_equal $GOPATH 'dummy'
|
||||||
|
}
|
||||||
|
|
||||||
@test 'debug goroot in travis' {
|
@test 'debug goroot in travis' {
|
||||||
|
assert_equal $(go env GOROOT) 'dummy'
|
||||||
|
}
|
||||||
|
|
||||||
|
@test 'debug goroot in travis 2' {
|
||||||
assert_equal $GOROOT 'dummy'
|
assert_equal $GOROOT 'dummy'
|
||||||
}
|
}
|
||||||
|
|
||||||
@test 'debug goroot in travis, after load' {
|
@test 'debug goroot in travis, after load' {
|
||||||
export GOROOT='/tmp'
|
export GOROOT='/tmp'
|
||||||
load ../../plugins/available/go.plugin
|
load ../../plugins/available/go.plugin
|
||||||
assert_equal $GOROOT 'dummy'
|
|
||||||
assert_equal $(go env 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' {
|
@test 'plugins go: single entry in GOPATH' {
|
||||||
export GOROOT='/baz'
|
export GOROOT='/baz'
|
||||||
export GOPATH='/foo'
|
export GOPATH='/foo'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue