|
@@ -4,10 +4,6 @@
|
|
|
# This script is executed from within the container.
|
|
# This script is executed from within the container.
|
|
|
#
|
|
#
|
|
|
|
|
|
|
|
-CCARMV7=arm-linux-gnueabihf-gcc
|
|
|
|
|
-CCARM64=aarch64-linux-gnu-gcc
|
|
|
|
|
-CCOSX64=/tmp/osxcross/target/bin/o64-clang
|
|
|
|
|
-CCWIN64=x86_64-w64-mingw32-gcc
|
|
|
|
|
CCX64=/tmp/x86_64-centos6-linux-gnu/bin/x86_64-centos6-linux-gnu-gcc
|
|
CCX64=/tmp/x86_64-centos6-linux-gnu/bin/x86_64-centos6-linux-gnu-gcc
|
|
|
|
|
|
|
|
GOPATH=/go
|
|
GOPATH=/go
|
|
@@ -18,17 +14,9 @@ echo "current dir: $(pwd)"
|
|
|
|
|
|
|
|
if [ "$CIRCLE_TAG" != "" ]; then
|
|
if [ "$CIRCLE_TAG" != "" ]; then
|
|
|
echo "Building releases from tag $CIRCLE_TAG"
|
|
echo "Building releases from tag $CIRCLE_TAG"
|
|
|
- go run build.go -goarch armv7 -cc ${CCARMV7} -includeBuildNumber=false build
|
|
|
|
|
- go run build.go -goarch arm64 -cc ${CCARM64} -includeBuildNumber=false build
|
|
|
|
|
- go run build.go -goos darwin -cc ${CCOSX64} -includeBuildNumber=false build
|
|
|
|
|
- go run build.go -goos windows -cc ${CCWIN64} -includeBuildNumber=false build
|
|
|
|
|
CC=${CCX64} go run build.go -includeBuildNumber=false build
|
|
CC=${CCX64} go run build.go -includeBuildNumber=false build
|
|
|
else
|
|
else
|
|
|
echo "Building incremental build for $CIRCLE_BRANCH"
|
|
echo "Building incremental build for $CIRCLE_BRANCH"
|
|
|
- go run build.go -goarch armv7 -cc ${CCARMV7} -buildNumber=${CIRCLE_BUILD_NUM} build
|
|
|
|
|
- go run build.go -goarch arm64 -cc ${CCARM64} -buildNumber=${CIRCLE_BUILD_NUM} build
|
|
|
|
|
- go run build.go -goos darwin -cc ${CCOSX64} -buildNumber=${CIRCLE_BUILD_NUM} build
|
|
|
|
|
- go run build.go -goos windows -cc ${CCWIN64} -buildNumber=${CIRCLE_BUILD_NUM} build
|
|
|
|
|
CC=${CCX64} go run build.go -buildNumber=${CIRCLE_BUILD_NUM} build
|
|
CC=${CCX64} go run build.go -buildNumber=${CIRCLE_BUILD_NUM} build
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
@@ -45,43 +33,9 @@ if [ "$CIRCLE_TAG" != "" ]; then
|
|
|
go run build.go -includeBuildNumber=false build-frontend
|
|
go run build.go -includeBuildNumber=false build-frontend
|
|
|
echo "Packaging a release from tag $CIRCLE_TAG"
|
|
echo "Packaging a release from tag $CIRCLE_TAG"
|
|
|
go run build.go -goos linux -pkg-arch amd64 -includeBuildNumber=false package-only latest
|
|
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
|
|
else
|
|
|
echo "Building frontend for $CIRCLE_BRANCH"
|
|
echo "Building frontend for $CIRCLE_BRANCH"
|
|
|
go run build.go -buildNumber=${CIRCLE_BUILD_NUM} build-frontend
|
|
go run build.go -buildNumber=${CIRCLE_BUILD_NUM} build-frontend
|
|
|
echo "Packaging incremental build for $CIRCLE_BRANCH"
|
|
echo "Packaging incremental build for $CIRCLE_BRANCH"
|
|
|
go run build.go -goos linux -pkg-arch amd64 -buildNumber=${CIRCLE_BUILD_NUM} package-only latest
|
|
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
|
|
fi
|