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
d89c77af
Commit
d89c77af
authored
Mar 04, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small changes to build scripts
parent
2d7d70b9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
37 deletions
+7
-37
Gruntfile.js
+2
-0
build.go
+4
-7
conf/custom.ini
+1
-1
wercker-box.yml
+0
-27
wercker.yml
+0
-2
No files found.
Gruntfile.js
View file @
d89c77af
...
...
@@ -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
);
...
...
build.go
View file @
d89c77af
...
...
@@ -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"
)
...
...
@@ -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
()
...
...
@@ -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
()
{
...
...
conf/custom.ini
View file @
d89c77af
...
...
@@ -6,7 +6,7 @@ static_root_path = src
[log]
level
=
Trace
mode
=
console
, file
mode
=
console
wercker-box.yml
deleted
100644 → 0
View file @
2d7d70b9
name
:
grafana-build-box
version
:
2.0.0
inherits
:
wercker/golang
type
:
main
platform
:
ubuntu@12.04
packages
:
-
ruby@2.0.0-p594
keywords
:
-
ruby
script
:
|
export RUBYVERSION=2.0.0-p594
sudo apt-get update
sudo apt-get install git zlib1g-dev libreadline-dev libqtwebkit-dev
sudo apt-get remove ruby1.9.1
cd $HOME
mkdir rubyinstall
cd rubyinstall
wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-$RUBYVERSION.tar.gz
tar xzvf ruby-$RUBYVERSION.tar.gz
cd ruby-$RUBYVERSION
./configure --with-readline-dir=/usr/include/readline --with-openssl-dir=/usr/include/openssl
make
make test
sudo make install
cd $HOME
rm -fr rubyinstall
echo "gem: --no-rdoc --no-ri" >> $HOME/.gemrc
wercker.yml
View file @
d89c77af
...
...
@@ -20,8 +20,6 @@ build:
go run build.go clean test build
# frontend
-
npm-install
-
grunt
:
tasks
:
release
# create packages
-
script
:
name
:
create packages
...
...
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