Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
8054f6a2
Commit
8054f6a2
authored
Mar 03, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated build and wercker, again
parent
f2595917
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
build.go
+1
-4
wercker.yml
+9
-8
No files found.
build.go
View file @
8054f6a2
...
@@ -67,6 +67,7 @@ func main() {
...
@@ -67,6 +67,7 @@ func main() {
case
"build"
:
case
"build"
:
pkg
:=
"."
pkg
:=
"."
var
tags
[]
string
var
tags
[]
string
clean
()
build
(
pkg
,
tags
)
build
(
pkg
,
tags
)
case
"test"
:
case
"test"
:
...
@@ -76,11 +77,7 @@ func main() {
...
@@ -76,11 +77,7 @@ func main() {
version
+=
"-"
+
getGitSha
()
version
+=
"-"
+
getGitSha
()
case
"package"
:
case
"package"
:
clean
()
//verifyGitRepoIsClean()
//verifyGitRepoIsClean()
test
(
"./pkg/..."
)
build
(
"."
,
[]
string
{})
buildFrontend
()
createRpmAndDeb
()
createRpmAndDeb
()
case
"build-ui"
:
case
"build-ui"
:
...
...
wercker.yml
View file @
8054f6a2
...
@@ -12,26 +12,27 @@ build:
...
@@ -12,26 +12,27 @@ build:
name
:
build setup
name
:
build setup
code
:
|
code
:
|
go run build.go setup
go run build.go setup
sudo apt-get install -y ruby-dev gcc
sudo gem install fpm
sudo gem install fpm
# Build the project
# Build the project
-
script
:
-
script
:
name
:
build
backend
name
:
build
code
:
|
code
:
|
go run build.go build
go run build.go clean test build
# Test the project
-
script
:
name
:
test backend
code
:
|
go run build.go test
# frontend
# frontend
-
npm-install
-
npm-install
-
grunt
:
-
grunt
:
tasks
:
release
tasks
:
release
# create packages
-
script
:
name
:
create packages
code
:
|
go run build.go package
# save packages
-
script
:
-
script
:
name
:
copy output
name
:
copy output
code
:
|-
code
:
|-
rsync -rv "$WERCKER_SOURCE_DIR/dist/" "$WERCKER_OUTPUT_DIR"
rsync -rv "$WERCKER_SOURCE_DIR/dist/" "$WERCKER_OUTPUT_DIR"
deploy
:
deploy
:
steps
:
steps
:
-
add-to-known_hosts
:
-
add-to-known_hosts
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment