smarter build
This commit is contained in:
parent
2d5a45476c
commit
5ceab01b0e
10
Makefile
10
Makefile
|
@ -93,12 +93,20 @@ safe-build: install
|
||||||
|
|
||||||
build-quick: install
|
build-quick: install
|
||||||
wit-test install --verbose
|
wit-test install --verbose
|
||||||
rm -f go.* ; git checkout go.mod ; cd ~/go/src/go.wit.com/lib/xgb/ && time GUIRELEASE_REASON="safe-build" guireleaser --gui andlabs quick
|
# rm -f go.* ; git checkout go.mod ;cd ~/go/src/go.wit.com/lib/xgb/ && time GUIRELEASE_REASON="safe-build" guireleaser --gui andlabs quick
|
||||||
sudo "wit update"
|
sudo "wit update"
|
||||||
|
|
||||||
autocomplete:
|
autocomplete:
|
||||||
guireleaser --bash > ~/.local/share/bash-completion/completions/guireleaser
|
guireleaser --bash > ~/.local/share/bash-completion/completions/guireleaser
|
||||||
|
|
||||||
|
# GUIRELEASE_REASON="safe-build" make test-build
|
||||||
test-build:
|
test-build:
|
||||||
-wit-test install --verbose
|
-wit-test install --verbose
|
||||||
rm ~/go/bin/forged
|
rm ~/go/bin/forged
|
||||||
|
cd ~/go/src/go.wit.com/lib/xgb/ && rm -f go.*
|
||||||
|
cd ~/go/src/go.wit.com/lib/xgb/ && git checkout go.mod
|
||||||
|
cd ~/go/src/go.wit.com/lib/xgb/ && time guireleaser --gui andlabs quick
|
||||||
|
cd ~/go/src/go.wit.com/apps/guireleaser
|
||||||
|
wit-test debian --verbose
|
||||||
|
do-aptly
|
||||||
|
sudo "wit update"
|
||||||
|
|
1
exit.go
1
exit.go
|
@ -9,6 +9,7 @@ import (
|
||||||
func okExit(thing string) {
|
func okExit(thing string) {
|
||||||
log.Info(thing, "ok")
|
log.Info(thing, "ok")
|
||||||
// log.Info("Finished go-clean on", check.GetNamespace(), "ok")
|
// log.Info("Finished go-clean on", check.GetNamespace(), "ok")
|
||||||
|
me.forge.Exit()
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
13
findNext.go
13
findNext.go
|
@ -8,7 +8,6 @@ import (
|
||||||
|
|
||||||
"go.wit.com/log"
|
"go.wit.com/log"
|
||||||
|
|
||||||
"go.wit.com/lib/gui/shell"
|
|
||||||
"go.wit.com/lib/protobuf/gitpb"
|
"go.wit.com/lib/protobuf/gitpb"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -120,18 +119,6 @@ func findNext() bool {
|
||||||
log.Info("NOTHING TO UPDATE. findCounter =", findCounter, "found len =", me.found.Len())
|
log.Info("NOTHING TO UPDATE. findCounter =", findCounter, "found len =", me.found.Len())
|
||||||
if me.found.Len() == 0 {
|
if me.found.Len() == 0 {
|
||||||
printDone()
|
printDone()
|
||||||
log.Info("cd lib/; make debian")
|
|
||||||
wit := me.forge.FindByGoPath("go.wit.com/apps/utils/wit-test")
|
|
||||||
if wit != nil {
|
|
||||||
log.Info("cd", wit.GetFullPath())
|
|
||||||
os.Chdir(wit.GetFullPath())
|
|
||||||
shell.Exec([]string{"ls", "-l"})
|
|
||||||
if argv.Full {
|
|
||||||
shell.Exec([]string{"make", "debian-release-force"})
|
|
||||||
} else {
|
|
||||||
shell.Exec([]string{"make", "debian-release"})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
okExit("")
|
okExit("")
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue