aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-12-17 12:31:03 +0100
committerJakob Borg <jakob@nym.se>2014-12-19 12:43:48 +0100
commit2090530bbb77df76ec260e01368c6674f4222b16 (patch)
tree1b429ead7ce8eef3853e87bd822b0b1519b7d8ee /build.sh
parentb6cb7ddbaf9b52e8df06da4c9765e2519b511918 (diff)
downloadsyncthing-2090530bbb77df76ec260e01368c6674f4222b16.tar.gz
syncthing-2090530bbb77df76ec260e01368c6674f4222b16.zip
Improve and clean up integration tests, benchmark.
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh14
1 files changed, 6 insertions, 8 deletions
diff --git a/build.sh b/build.sh
index e4560715c..e9070bc3f 100755
--- a/build.sh
+++ b/build.sh
@@ -105,7 +105,7 @@ case "${1:-default}" in
;;
docker-init)
- docker build -q -t syncthing/build:$DOCKERIMGV docker >/dev/null
+ docker build -q -t syncthing/build:$DOCKERIMGV docker
;;
docker-all)
@@ -122,17 +122,15 @@ case "${1:-default}" in
docker-test)
docker run --rm -h syncthing-builder -u $(id -u) -t \
- -v $(pwd):/tmp/syncthing \
+ -v $(pwd):/go/src/github.com/syncthing/syncthing \
+ -w /go/src/github.com/syncthing/syncthing \
syncthing/build:$DOCKERIMGV \
- sh -euxc 'mkdir -p /go/src/github.com/syncthing \
- && cd /go/src/github.com/syncthing \
- && cp -r /tmp/syncthing syncthing \
- && cd syncthing \
- && ./build.sh clean \
+ sh -euxc './build.sh clean \
&& go run build.go -race \
&& export GOPATH=$(pwd)/Godeps/_workspace:$GOPATH \
&& cd test \
- && go test -tags integration -v -timeout 60m -short'
+ && go test -tags integration -v -timeout 60m -short \
+ && git clean -fxd .'
;;
*)