mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
build,test: set up GOPATH in build script
Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
parent
32c46954ee
commit
18f8b1b1e1
4
build
4
build
@ -84,6 +84,10 @@ tools_build() {
|
|||||||
|
|
||||||
toggle_failpoints_default
|
toggle_failpoints_default
|
||||||
|
|
||||||
|
if [[ "${ETCD_SETUP_GOPATH}" == "1" ]]; then
|
||||||
|
etcd_setup_gopath
|
||||||
|
fi
|
||||||
|
|
||||||
# only build when called directly, not sourced
|
# only build when called directly, not sourced
|
||||||
if echo "$0" | grep "build$" >/dev/null; then
|
if echo "$0" | grep "build$" >/dev/null; then
|
||||||
etcd_build
|
etcd_build
|
||||||
|
4
test
4
test
@ -16,10 +16,6 @@ set -e
|
|||||||
|
|
||||||
source ./build
|
source ./build
|
||||||
|
|
||||||
if [[ "${ETCD_SETUP_GOPATH}" == "1" ]]; then
|
|
||||||
etcd_setup_gopath
|
|
||||||
fi
|
|
||||||
|
|
||||||
# build before setting up test GOPATH
|
# build before setting up test GOPATH
|
||||||
if [[ "${PASSES}" == *"functional"* ]]; then
|
if [[ "${PASSES}" == *"functional"* ]]; then
|
||||||
./tools/functional-tester/build
|
./tools/functional-tester/build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user