Skip to content

Commit

Permalink
Small changes to build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelo committed Mar 4, 2015
1 parent 2d7d70b commit d89c77a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 37 deletions.
2 changes: 2 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ module.exports = function (grunt) {
arch: grunt.option('arch') || 'x86_64',
};

config.pkg.version = grunt.option('pkgVer') || config.pkg.version;

// load plugins
require('load-grunt-tasks')(grunt);

Expand Down
11 changes: 4 additions & 7 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ func main() {

log.Printf("Version: %s\n", version)

//os.Setenv("PATH", fmt.Sprintf("%s%cbin%c%s", os.Getenv("GOPATH"), os.PathSeparator, os.PathListSeparator, os.Getenv("PATH")))

flag.StringVar(&goarch, "goarch", runtime.GOARCH, "GOARCH")
flag.StringVar(&goos, "goos", runtime.GOOS, "GOOS")
flag.BoolVar(&race, "race", race, "Use race detector")
Expand All @@ -72,17 +70,16 @@ func main() {

case "test":
test("./pkg/...")
grunt("test")

case "latest":
version += "-" + getGitSha()

case "package":
//verifyGitRepoIsClean()
grunt("release", "--pkgVer="+version)
createRpmAndDeb()

case "build-ui":
buildFrontend()

case "clean":
clean()

Expand Down Expand Up @@ -212,8 +209,8 @@ func ChangeWorkingDir(dir string) {
os.Chdir(dir)
}

func buildFrontend() {
runPrint("grunt", "release")
func grunt(params ...string) {
runPrint("./node_modules/grunt-cli/bin/grunt", params...)
}

func setup() {
Expand Down
2 changes: 1 addition & 1 deletion conf/custom.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ static_root_path = src

[log]
level = Trace
mode = console, file
mode = console



27 changes: 0 additions & 27 deletions wercker-box.yml

This file was deleted.

2 changes: 0 additions & 2 deletions wercker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ build:
go run build.go clean test build
# frontend
- npm-install
- grunt:
tasks: release
# create packages
- script:
name: create packages
Expand Down

0 comments on commit d89c77a

Please sign in to comment.