mirror of
https://github.com/grafana/grafana.git
synced 2025-02-14 17:43:35 -06:00
* enable ee build on pr/master * step1: of including group sync * disable commit pinning for now * fixes broken build * enable team to ldap group sync * avoid returning error for missing external handler * services: allow routes to be added before http server start * services: allows services to add their own migrations * moves db migrations to ee code base * build using master branch in ee * disable enterprise build in .bra.toml [skip ci] * removes team sync extensions * removes commented line
59 lines
1.4 KiB
Bash
Executable File
59 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
#
|
|
# This script is executed from within the container.
|
|
#
|
|
|
|
echo "building enterprise version"
|
|
|
|
GOPATH=/go
|
|
REPO_PATH=$GOPATH/src/github.com/grafana/grafana
|
|
|
|
|
|
cd /go/src/github.com/grafana/grafana
|
|
echo "current dir: $(pwd)"
|
|
|
|
cd ..
|
|
git clone -b master --single-branch git@github.com:grafana/grafana-enterprise.git --depth 10
|
|
cd grafana-enterprise
|
|
#git checkout 7fbae9c1be3467c4a39cf6ad85278a6896ceb49f
|
|
./build.sh
|
|
|
|
cd ../grafana
|
|
|
|
function exit_if_fail {
|
|
command=$@
|
|
echo "Executing '$command'"
|
|
eval $command
|
|
rc=$?
|
|
if [ $rc -ne 0 ]; then
|
|
echo "'$command' returned $rc."
|
|
exit $rc
|
|
fi
|
|
}
|
|
|
|
exit_if_fail go test ./pkg/extensions/...
|
|
|
|
|
|
if [ "$CIRCLE_TAG" != "" ]; then
|
|
echo "Building a release from tag $ls"
|
|
go run build.go -buildNumber=${CIRCLE_BUILD_NUM} -enterprise=true -includeBuildNumber=false build
|
|
else
|
|
echo "Building incremental build for $CIRCLE_BRANCH"
|
|
go run build.go -buildNumber=${CIRCLE_BUILD_NUM} -enterprise=true build
|
|
fi
|
|
|
|
yarn install --pure-lockfile --no-progress
|
|
|
|
source /etc/profile.d/rvm.sh
|
|
|
|
echo "current dir: $(pwd)"
|
|
|
|
if [ "$CIRCLE_TAG" != "" ]; then
|
|
echo "Packaging a release from tag $CIRCLE_TAG"
|
|
go run build.go -buildNumber=${CIRCLE_BUILD_NUM} -enterprise=true -includeBuildNumber=false package latest
|
|
else
|
|
echo "Packaging incremental build for $CIRCLE_BRANCH"
|
|
go run build.go -buildNumber=${CIRCLE_BUILD_NUM} -enterprise=true package latest
|
|
fi
|