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
2bdc147e
Commit
2bdc147e
authored
Jan 18, 2019
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: skips building rpm for armv6.
parent
5f188058
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
build.go
+11
-2
scripts/build/build-all.sh
+1
-1
scripts/build/build.sh
+1
-1
No files found.
build.go
View file @
2bdc147e
...
@@ -46,6 +46,8 @@ var (
...
@@ -46,6 +46,8 @@ var (
binaries
[]
string
=
[]
string
{
"grafana-server"
,
"grafana-cli"
}
binaries
[]
string
=
[]
string
{
"grafana-server"
,
"grafana-cli"
}
isDev
bool
=
false
isDev
bool
=
false
enterprise
bool
=
false
enterprise
bool
=
false
skipRpmGen
bool
=
false
skipDebGen
bool
=
false
)
)
func
main
()
{
func
main
()
{
...
@@ -67,6 +69,8 @@ func main() {
...
@@ -67,6 +69,8 @@ func main() {
flag
.
BoolVar
(
&
enterprise
,
"enterprise"
,
enterprise
,
"Build enterprise version of Grafana"
)
flag
.
BoolVar
(
&
enterprise
,
"enterprise"
,
enterprise
,
"Build enterprise version of Grafana"
)
flag
.
StringVar
(
&
buildIdRaw
,
"buildId"
,
"0"
,
"Build ID from CI system"
)
flag
.
StringVar
(
&
buildIdRaw
,
"buildId"
,
"0"
,
"Build ID from CI system"
)
flag
.
BoolVar
(
&
isDev
,
"dev"
,
isDev
,
"optimal for development, skips certain steps"
)
flag
.
BoolVar
(
&
isDev
,
"dev"
,
isDev
,
"optimal for development, skips certain steps"
)
flag
.
BoolVar
(
&
skipRpmGen
,
"skipRpm"
,
skipRpmGen
,
"skip rpm package generation (default: false)"
)
flag
.
BoolVar
(
&
skipDebGen
,
"skipDeb"
,
skipDebGen
,
"skip deb package generation (default: false)"
)
flag
.
Parse
()
flag
.
Parse
()
buildId
=
shortenBuildId
(
buildIdRaw
)
buildId
=
shortenBuildId
(
buildIdRaw
)
...
@@ -292,8 +296,13 @@ func createRpmPackages() {
...
@@ -292,8 +296,13 @@ func createRpmPackages() {
}
}
func
createLinuxPackages
()
{
func
createLinuxPackages
()
{
createDebPackages
()
if
!
skipDebGen
{
createRpmPackages
()
createDebPackages
()
}
if
!
skipRpmGen
{
createRpmPackages
()
}
}
}
func
createPackage
(
options
linuxPackageOptions
)
{
func
createPackage
(
options
linuxPackageOptions
)
{
...
...
scripts/build/build-all.sh
View file @
2bdc147e
...
@@ -69,7 +69,7 @@ rm tools/phantomjs/phantomjs
...
@@ -69,7 +69,7 @@ rm tools/phantomjs/phantomjs
# build only amd64 for enterprise
# build only amd64 for enterprise
if
echo
"
$EXTRA_OPTS
"
|
grep
-vq
enterprise
;
then
if
echo
"
$EXTRA_OPTS
"
|
grep
-vq
enterprise
;
then
go run build.go
-goos
linux
-pkg-arch
armv6
${
OPT
}
package-only
go run build.go
-goos
linux
-pkg-arch
armv6
${
OPT
}
-skipRpm
package-only
go run build.go
-goos
linux
-pkg-arch
armv7
${
OPT
}
package-only
go run build.go
-goos
linux
-pkg-arch
armv7
${
OPT
}
package-only
go run build.go
-goos
linux
-pkg-arch
arm64
${
OPT
}
package-only
go run build.go
-goos
linux
-pkg-arch
arm64
${
OPT
}
package-only
...
...
scripts/build/build.sh
View file @
2bdc147e
...
@@ -50,7 +50,7 @@ source /etc/profile.d/rvm.sh
...
@@ -50,7 +50,7 @@ source /etc/profile.d/rvm.sh
echo
"Packaging"
echo
"Packaging"
go run build.go
-goos
linux
-pkg-arch
amd64
${
OPT
}
package-only
go run build.go
-goos
linux
-pkg-arch
amd64
${
OPT
}
package-only
go run build.go
-goos
linux
-pkg-arch
armv6
${
OPT
}
package-only
go run build.go
-goos
linux
-pkg-arch
armv6
${
OPT
}
-skipRpm
package-only
go run build.go
-goos
linux
-pkg-arch
armv7
${
OPT
}
package-only
go run build.go
-goos
linux
-pkg-arch
armv7
${
OPT
}
package-only
go run build.go
-goos
linux
-pkg-arch
arm64
${
OPT
}
package-only
go run build.go
-goos
linux
-pkg-arch
arm64
${
OPT
}
package-only
...
...
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