From 8054f6a2d121a76a31ab5203faad85066567fe06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Tue, 3 Mar 2015 18:11:16 +0100 Subject: [PATCH] Updated build and wercker, again --- build.go | 5 +---- wercker.yml | 17 +++++++++-------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/build.go b/build.go index 16633a9e99a..f244135f5c4 100644 --- a/build.go +++ b/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": diff --git a/wercker.yml b/wercker.yml index abc91ef7515..26b3f3f726c 100644 --- a/wercker.yml +++ b/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: