mirror of
https://github.com/grafana/grafana.git
synced 2024-11-22 08:56:43 -06:00
Updated build and wercker, again
This commit is contained in:
parent
f2595917c6
commit
8054f6a2d1
5
build.go
5
build.go
@ -67,6 +67,7 @@ func main() {
|
||||
case "build":
|
||||
pkg := "."
|
||||
var tags []string
|
||||
clean()
|
||||
build(pkg, tags)
|
||||
|
||||
case "test":
|
||||
@ -76,11 +77,7 @@ func main() {
|
||||
version += "-" + getGitSha()
|
||||
|
||||
case "package":
|
||||
clean()
|
||||
//verifyGitRepoIsClean()
|
||||
test("./pkg/...")
|
||||
build(".", []string{})
|
||||
buildFrontend()
|
||||
createRpmAndDeb()
|
||||
|
||||
case "build-ui":
|
||||
|
17
wercker.yml
17
wercker.yml
@ -12,26 +12,27 @@ build:
|
||||
name: build setup
|
||||
code: |
|
||||
go run build.go setup
|
||||
sudo apt-get install -y ruby-dev gcc
|
||||
sudo gem install fpm
|
||||
# Build the project
|
||||
- script:
|
||||
name: build backend
|
||||
name: build
|
||||
code: |
|
||||
go run build.go build
|
||||
# Test the project
|
||||
- script:
|
||||
name: test backend
|
||||
code: |
|
||||
go run build.go test
|
||||
go run build.go clean test build
|
||||
# frontend
|
||||
- npm-install
|
||||
- grunt:
|
||||
tasks: release
|
||||
# create packages
|
||||
- script:
|
||||
name: create packages
|
||||
code: |
|
||||
go run build.go package
|
||||
# save packages
|
||||
- script:
|
||||
name: copy output
|
||||
code: |-
|
||||
rsync -rv "$WERCKER_SOURCE_DIR/dist/" "$WERCKER_OUTPUT_DIR"
|
||||
|
||||
deploy:
|
||||
steps:
|
||||
- add-to-known_hosts:
|
||||
|
Loading…
Reference in New Issue
Block a user