tech(build): disable package iteration for release builds

This commit is contained in:
bergquist
2017-01-31 09:40:26 +01:00
parent fce2e341d2
commit d72f257f27
4 changed files with 51 additions and 35 deletions
+25 -12
View File
@@ -10,18 +10,27 @@ REPO_PATH=$GOPATH/src/github.com/grafana/grafana
mkdir -p /go/src/github.com/grafana
cd /go/src/github.com/grafana
if [ -n "${CIRCLE_TAG}" ]; then
echo "Building from tag ${CIRCLE_TAG}"
git clone --depth 1 https://github.com/grafana/grafana.git -b $CIRCLE_BRANCH
cd $REPO_PATH
else
echo "Building from branch ${CIRCLE_BRANCH}"
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
echo "current dir: $(pwd)"
if [ "$CIRCLE_TAG" != "" ]; then
echo "Building incremental build for master"
go run build.go build
else
echo "Building a release"
go run build.go -includeBuildNumber=false build
fi
go run build.go build
yarn install --pure-lockfile
source /etc/profile.d/rvm.sh
@@ -29,11 +38,15 @@ rvm use 2.1.9 --default
gem install fpm -v 1.4
#if [ -n "${CIRCLE_TAG}" ]; then
#go run build.go -includeBuildNumber=false package latest
#else
go run build.go package latest
#fi
echo "current dir: $(pwd)"
if [ "$CIRCLE_TAG" != "" ]; then
echo "Building incremental build for master"
go run build.go package latest
else
echo "Building a release"
go run build.go -includeBuildNumber=false package latest
fi
cp dist/* /tmp/dist/