Pārlūkot izejas kodu

Improve make PR (force build and help message) (#10178)

* Force build of assets

* Add make pr to make help

* apply @jolheiser suggestion

Co-Authored-By: John Olheiser <42128690+jolheiser@users.noreply.github.com>

* Run clean-all before make pr

Co-authored-by: John Olheiser <42128690+jolheiser@users.noreply.github.com>
tags/v1.10.5
Antoine GIRARD pirms 4 gadiem
vecāks
revīzija
632df9b996
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
2 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 2
    1
      Makefile
  2. 2
    1
      contrib/pr/checkout.go

+ 2
- 1
Makefile Parādīt failu

@@ -121,6 +121,7 @@ help:
@echo " - vet examines Go source code and reports suspicious constructs"
@echo " - test run unit test"
@echo " - test-sqlite run integration test for sqlite"
@echo " - pr#<index> build and start gitea from a PR with integration test data loaded"

.PHONY: go-check
go-check:
@@ -565,7 +566,7 @@ generate-images:
$(foreach file, $(shell find public/img -type f -name '*.png' ! -name 'loading.png'),zopflipng -m -y $(file) $(file);)

.PHONY: pr\#%
pr\#%:
pr\#%: clean-all
$(GO) run contrib/pr/checkout.go $*

.PHONY: golangci-lint

+ 2
- 1
contrib/pr/checkout.go Parādīt failu

@@ -247,7 +247,8 @@ func main() {
log.Fatalf("Failed to duplicate this code file in PR : %v", err)
}
}
time.Sleep(5 * time.Second)
//Force build of js, css, bin, ...
runCmd("make", "build")
//Start with integration test
runCmd("go", "run", "-tags", "sqlite sqlite_unlock_notify", codeFilePath, "-run")
}

Notiek ielāde…
Atcelt
Saglabāt