Commit 8054f6a2 by Torkel Ödegaard

Updated build and wercker, again

parent f2595917
......@@ -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":
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment