From cf75f4424dc7f9c9adf82318c3022240793fa523 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Wed, 6 Feb 2019 06:29:08 +0000 Subject: [PATCH] Use relative path for bootstrap script --- .travis.yml | 4 +--- tools/qemu-debian-img/bootstrap.sh | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8db5d6d..1358c0f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,9 +21,7 @@ env: install: true before_script: - - cd $GOPATH/src/code.dumpstack.io/tools/out-of-tree/tools/qemu-debian-img - - ./bootstrap.sh - - cd $GOPATH/src/code.dumpstack.io/tools/out-of-tree + - tools/out-of-tree/bootstrap.sh script: - go test -parallel 1 -v ./... diff --git a/tools/qemu-debian-img/bootstrap.sh b/tools/qemu-debian-img/bootstrap.sh index 7277671..a37d9fb 100755 --- a/tools/qemu-debian-img/bootstrap.sh +++ b/tools/qemu-debian-img/bootstrap.sh @@ -1,4 +1,6 @@ #!/bin/sh -eux +cd $(dirname $(realpath $0)) + docker build -t gen-ubuntu1804-image . docker run --privileged -v $(pwd):/shared -t gen-ubuntu1804-image RUN="docker run -v $(pwd):/shared -t gen-ubuntu1804-image"