This repository has been archived by the owner on Feb 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Golang upgrade, buildkite integration, Windows docker toolbox support, …
- Loading branch information
Showing
10 changed files
with
175 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- command: ".buildkite/test.sh" | ||
agents: | ||
- "os=macos" | ||
- "dockertype=dockerformac" | ||
env: | ||
BUILDKITE_CLEAN_CHECKOUT: true | ||
parallelism: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# Check a testbot or test environment to make sure it's likely to be sane. | ||
# We should add to this script whenever a testbot fails and we can figure out why. | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
|
||
# Check that required commands are available. | ||
for command in mysql git go make; do | ||
command -v $command >/dev/null || ( echo "Did not find command installed '$command'" && exit 2 ) | ||
done | ||
docker run -t busybox ls | ||
|
||
if [ "$(go env GOOS)" = "windows" -a "$(git config core.autocrlf)" != "false" ] ; then | ||
echo "git config core.autocrlf is not set to false on windows" | ||
exit 3 | ||
fi | ||
|
||
echo "--- testbot $HOSTNAME seems to be set up OK" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@echo "Building using bash and build.sh" | ||
"C:\Program Files\git\bin\bash" .buildkite/test.sh | ||
|
||
if %ERRORLEVEL% EQU 0 ( | ||
@echo Successful build | ||
) else ( | ||
@echo Failure Reason Given is %errorlevel% | ||
exit /b %errorlevel% | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
|
||
# This script is used to build drud/build-tools using buildkite | ||
|
||
# Manufacture a $GOPATH environment that can mount on docker (when buildkite build) | ||
export GOPATH=~/tmp/buildkite-fake-gopath/$BUILDKITE_JOB_ID | ||
DRUDSRC=$GOPATH/src/github.com/drud | ||
mkdir -p $DRUDSRC | ||
ln -s $PWD $DRUDSRC/build-tools | ||
cd $DRUDSRC/build-tools | ||
BUILD_OS=$(go env GOOS) | ||
echo "--- buildkite building $BUILDKITE_JOB_ID at $(date) on $HOSTNAME for OS=$(go env GOOS) in $PWD GOPATH=$GOPATH" | ||
|
||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
set -x | ||
|
||
# Our testbot should now be sane, run the testbot checker to make sure. | ||
echo "--- Checking for sane testbot" | ||
./.buildkite/sanetestbot.sh | ||
|
||
echo "--- make $BUILD_OS" | ||
cd tests | ||
time make $BUILD_OS | ||
echo "--- make test" | ||
time make test | ||
RV=$? | ||
echo "--- build.sh completed with status=$RV" | ||
exit $RV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- command: ".buildkite/test.cmd" | ||
agents: | ||
- "os=windows" | ||
- "dockertype=dockerforwindows" | ||
env: | ||
BUILDKITE_CLEAN_CHECKOUT: true | ||
parallelism: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
- command: ".buildkite/test.cmd" | ||
agents: | ||
- "os=windows" | ||
- "dockertype=toolbox" | ||
env: | ||
BUILDKITE_CLEAN_CHECKOUT: true | ||
parallelism: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters