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
7ca346e9
Commit
7ca346e9
authored
May 18, 2018
by
Leonard Gram
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: downloads and bundles phantomjs for darwin and windows.
parent
3933cb6b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
0 deletions
+52
-0
.circleci/config.yml
+9
-0
scripts/build/build.sh
+26
-0
scripts/build/download-phantomjs.sh
+17
-0
No files found.
.circleci/config.yml
View file @
7ca346e9
...
...
@@ -77,6 +77,15 @@ jobs:
-
run
:
name
:
prepare build tools
command
:
'
/tmp/bootstrap.sh'
-
restore_cache
:
key
:
phantomjs-binaries-{{ checksum "scripts/build/download-phantomjs.sh" }}
-
run
:
name
:
download phantomjs binaries
command
:
'
./scripts/build/download-phantomjs.sh'
-
save_cache
:
key
:
phantomjs-binaries-{{ checksum "scripts/build/download-phantomjs.sh" }}
paths
:
-
/tmp/phantomjs
-
run
:
name
:
build and package grafana
command
:
'
./scripts/build/build.sh'
...
...
scripts/build/build.sh
View file @
7ca346e9
...
...
@@ -47,7 +47,20 @@ if [ "$CIRCLE_TAG" != "" ]; then
go run build.go
-goos
linux
-pkg-arch
amd64
-includeBuildNumber
=
false
package-only latest
go run build.go
-goos
linux
-pkg-arch
armv7
-includeBuildNumber
=
false
package-only
go run build.go
-goos
linux
-pkg-arch
arm64
-includeBuildNumber
=
false
package-only
if
[
-d
'/tmp/phantomjs/darwin'
]
;
then
cp /tmp/phantomjs/darwin/phantomjs tools/phantomjs/phantomjs
else
echo
'PhantomJS binaries for darwin missing!'
fi
go run build.go
-goos
darwin
-pkg-arch
amd64
-includeBuildNumber
=
false
package-only
if
[
-d
'/tmp/phantomjs/windows'
]
;
then
cp /tmp/phantomjs/windows/phantomjs.exe tools/phantomjs/phantomjs.exe
rm tools/phantomjs/phantomjs
else
echo
'PhantomJS binaries for darwin missing!'
fi
go run build.go
-goos
windows
-pkg-arch
amd64
-includeBuildNumber
=
false
package-only
else
echo
"Building frontend for
$CIRCLE_BRANCH
"
...
...
@@ -56,6 +69,19 @@ else
go run build.go
-goos
linux
-pkg-arch
amd64
-buildNumber
=
${
CIRCLE_BUILD_NUM
}
package-only latest
go run build.go
-goos
linux
-pkg-arch
armv7
-buildNumber
=
${
CIRCLE_BUILD_NUM
}
package-only
go run build.go
-goos
linux
-pkg-arch
arm64
-buildNumber
=
${
CIRCLE_BUILD_NUM
}
package-only
if
[
-d
'/tmp/phantomjs/darwin'
]
;
then
cp /tmp/phantomjs/darwin/phantomjs tools/phantomjs/phantomjs
else
echo
'PhantomJS binaries for darwin missing!'
fi
go run build.go
-goos
darwin
-pkg-arch
amd64
-buildNumber
=
${
CIRCLE_BUILD_NUM
}
package-only
if
[
-d
'/tmp/phantomjs/windows'
]
;
then
cp /tmp/phantomjs/windows/phantomjs.exe tools/phantomjs/phantomjs.exe
rm tools/phantomjs/phantomjs
else
echo
'PhantomJS binaries for windows missing!'
fi
go run build.go
-goos
windows
-pkg-arch
amd64
-buildNumber
=
${
CIRCLE_BUILD_NUM
}
package-only
fi
scripts/build/download-phantomjs.sh
0 → 100755
View file @
7ca346e9
#!/bin/bash -e
if
[
!
-d
'/tmp/phantomjs'
]
;
then
_version
=
"2.1.1"
curl
-L
https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-
$_version
-windows
.zip
>
/tmp/phantomjs-win.zip
curl
-L
https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-
$_version
-macosx
.zip
>
/tmp/phantomjs-mac.zip
cd
/tmp
unzip /tmp/phantomjs-win.zip
unzip /tmp/phantomjs-mac.zip
mkdir
-p
/tmp/phantomjs/windows /tmp/phantomjs/darwin
cp /tmp/phantomjs-
$_version
-windows
/bin/phantomjs.exe /tmp/phantomjs/windows/phantomjs.exe
cp /tmp/phantomjs-
$_version
-macosx
/bin/phantomjs /tmp/phantomjs/darwin/phantomjs
fi
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