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
26bb9ad3
Commit
26bb9ad3
authored
Feb 24, 2017
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: use initial checkout within container
speedup and simplify the build within the container
parent
f185c2c9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
23 deletions
+8
-23
circle.yml
+1
-2
scripts/build/build.sh
+1
-18
scripts/build/deploy.sh
+3
-1
scripts/circle-test.sh
+3
-2
No files found.
circle.yml
View file @
26bb9ad3
...
...
@@ -33,7 +33,7 @@ dependencies:
test
:
override
:
-
bash scripts/circle-test.sh
-
bash scripts/circle-test.sh
deployment
:
gh_branch
:
...
...
@@ -54,4 +54,3 @@ deployment:
-
aws s3 sync ./dist s3://$BUCKET_NAME/release
-
./scripts/trigger_windows_build.sh ${APPVEYOR_TOKEN} ${CIRCLE_SHA1} release
-
./scripts/trigger_docker_build.sh ${TRIGGER_GRAFANA_PACKER_CIRCLECI_TOKEN} ${CIRCLE_TAG}
scripts/build/build.sh
View file @
26bb9ad3
...
...
@@ -7,20 +7,7 @@
GOPATH
=
/go
REPO_PATH
=
$GOPATH
/src/github.com/grafana/grafana
mkdir
-p
/go/src/github.com/grafana
cd
/go/src/github.com/grafana
if
[
"
$CIRCLE_TAG
"
!=
""
]
;
then
echo
"Builing from tag
$CIRCLE_TAG
"
git clone https://github.com/grafana/grafana.git
cd
$REPO_PATH
git checkout
$CIRCLE_TAG
else
echo
"Building from branch
$CIRCLE_BRANCH
"
git clone
--depth
1 https://github.com/grafana/grafana.git
-b
$CIRCLE_BRANCH
cd
$REPO_PATH
fi
cd
/go/src/github.com/grafana/grafana
echo
"current dir:
$(
pwd
)
"
if
[
"
$CIRCLE_TAG
"
!=
""
]
;
then
...
...
@@ -47,7 +34,3 @@ else
echo
"Packaging incremental build for
$CIRCLE_BRANCH
"
go run build.go
-buildNumber
=
${
CIRCLE_BUILD_NUM
}
package latest
fi
cp dist/
*
/tmp/dist/
scripts/build/deploy.sh
View file @
26bb9ad3
...
...
@@ -5,8 +5,10 @@ mkdir -p dist
echo
"Circle branch:
${
CIRCLE_BRANCH
}
"
echo
"Circle tag:
${
CIRCLE_TAG
}
"
docker run
-i
-t
--name
gfbuild
\
-v
$(
pwd
)
/dist:/tmp/dist
\
-v
$(
pwd
)
:/go/src/github.com/grafana/grafana
\
-e
"CIRCLE_BRANCH=
${
CIRCLE_BRANCH
}
"
\
-e
"CIRCLE_TAG=
${
CIRCLE_TAG
}
"
\
-e
"CIRCLE_BUILD_NUM=
${
CIRCLE_BUILD_NUM
}
"
\
grafana/buildcontainer
sudo
chown
-R
${
USER
:
=
$(
/usr/bin/id
-run
)}
:
$USER
dist
scripts/circle-test.sh
View file @
26bb9ad3
...
...
@@ -24,7 +24,8 @@ exit_if_fail test -z "$(gofmt -s -l ./pkg | tee /dev/stderr)"
echo
"running go vet"
exit_if_fail
test
-z
"
$(
go vet ./pkg/... | tee /dev/stderr
)
"
echo
"building binaries"
exit_if_fail go run build.go build
exit_if_fail go
test
-v
./pkg/...
echo
"running go test"
exit_if_fail go
test
-v
./pkg/...
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