Updated build and wercker, again

This commit is contained in:
Torkel Ödegaard 2015-03-03 18:11:16 +01:00
parent f2595917c6
commit 8054f6a2d1
2 changed files with 10 additions and 12 deletions

View File

@ -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":

View File

@ -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: