-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
101 additions
and
19 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,14 @@ | ||
#!/bin/bash | ||
|
||
set +u | ||
|
||
echo "--- :golang: Setting up Golang build environment" | ||
|
||
if [[ ! -z "${GIMME_GO_VERSION:-}" ]] && [[ "$GIMME_GO_VERSION" != "" ]]; then | ||
eval "$(.ci/gimme.sh ${GIMME_GO_VERSION})" | ||
else | ||
echo "No \$GIMME_GO_VERSION set, skipping..." | ||
fi | ||
|
||
echo "---- :buildkite: :codecov: environment variables" | ||
export CI="true" # required by codecov.sh |
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,29 @@ | ||
steps: | ||
- name: "Unit, Big Unit" | ||
command: make clean install-vendor test-ci-unit test-ci-big-unit | ||
plugins: | ||
docker-compose#v2.5.1: | ||
run: app | ||
- name: "Integration (Docker), Services, Tools, Metalint" | ||
command: make install-vendor metalint test-all-gen docker-integration-test tools services | ||
env: | ||
CGO_ENABLED: 0 | ||
GIMME_GO_VERSION: 1.10.x | ||
plugins: | ||
gopath-checkout#v1.0.1: | ||
import: github.com/m3db/m3 | ||
- name: "Integration (All Metadata)" | ||
command: make clean install-vendor test-ci-integration-dbnode cache_policy=all_metadata | ||
plugins: | ||
docker-compose#v2.5.1: | ||
run: app | ||
- name: "Integration (Recently Read)" | ||
command: make clean install-vendor test-ci-integration-dbnode cache_policy=recently_read | ||
plugins: | ||
docker-compose#v2.5.1: | ||
run: app | ||
- name: "Integration (LRU)" | ||
command: make clean install-vendor test-ci-integration-dbnode cache_policy=lru | ||
plugins: | ||
docker-compose#v2.5.1: | ||
run: app |
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,10 @@ | ||
{ | ||
"name": "M3 CI", | ||
"steps": [ | ||
{ | ||
"type": "script", | ||
"name": ":pipeline:", | ||
"command": "buildkite-agent pipeline upload" | ||
} | ||
] | ||
} |
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 @@ | ||
# Built artifacts maintained externally at https://quay.io/repository/m3db/ci-base | ||
|
||
# Base image required for CI. | ||
# We seal the version of Golang to get hermetic builds. | ||
FROM golang:1.10.4-stretch | ||
LABEL maintainer="The M3DB Authors <[email protected]>" | ||
|
||
RUN mkdir -p /go/src/github.com/m3db/m3 | ||
WORKDIR /go/src/github.com/m3db/m3 |
Submodule .ci
updated
5 files
+2 −2 | common.mk | |
+6 −3 | test-big-cover.sh | |
+4 −1 | test-cover.sh | |
+3 −4 | test-integration.sh | |
+52 −0 | variables.sh |
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,4 @@ | ||
vendor/ | ||
bin/ | ||
_tools/ | ||
dist/ |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
app: | ||
image: quay.io/m3db/ci-base:latest | ||
volumes: | ||
- .:/go/src/github.com/m3db/m3 | ||
- /usr/bin/buildkite-agent:/usr/bin/buildkite-agent | ||
environment: | ||
- CI | ||
- BUILDKITE | ||
- BUILDKITE_AGENT_ACCESS_TOKEN | ||
- BUILDKITE_JOB_ID | ||
- BUILDKITE_BUILD_ID | ||
- BUILDKITE_BUILD_NUMBER | ||
- BUILDKITE_BRANCH | ||
- BUILDKITE_BUILD_URL | ||
- BUILDKITE_PROJECT_SLUG | ||
- BUILDKITE_COMMIT | ||
- BUILDKITE_PULL_REQUEST | ||
- BUILDKITE_TAG | ||
- CODECOV_TOKEN |
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