mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 14:48:30 +00:00
Build command for assets, use godep for tests etc
This commit is contained in:
parent
bc5ff6e1b6
commit
a203d99182
14
build.sh
14
build.sh
@ -18,12 +18,12 @@ build() {
|
||||
${godep} go build -ldflags "-w -X main.Version $version" ./cmd/stcli
|
||||
}
|
||||
|
||||
prepare() {
|
||||
go run cmd/assets/assets.go gui > auto/gui.files.go
|
||||
assets() {
|
||||
godep go run cmd/assets/assets.go gui > auto/gui.files.go
|
||||
}
|
||||
|
||||
test() {
|
||||
go test -cpu=1,2,4 ./...
|
||||
godep go test -cpu=1,2,4 ./...
|
||||
}
|
||||
|
||||
sign() {
|
||||
@ -75,8 +75,8 @@ case "$1" in
|
||||
|
||||
tar)
|
||||
rm -f *.tar.gz *.zip
|
||||
prepare
|
||||
test || exit 1
|
||||
assets
|
||||
build
|
||||
|
||||
eval $(go env)
|
||||
@ -87,8 +87,8 @@ case "$1" in
|
||||
|
||||
all)
|
||||
rm -f *.tar.gz *.zip
|
||||
prepare
|
||||
test || exit 1
|
||||
assets
|
||||
|
||||
for os in darwin-amd64 linux-386 linux-amd64 freebsd-amd64 windows-amd64 ; do
|
||||
export GOOS=${os%-*}
|
||||
@ -134,6 +134,10 @@ case "$1" in
|
||||
deps
|
||||
;;
|
||||
|
||||
assets)
|
||||
assets
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Unknown build parameter $1"
|
||||
;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user