From 02e9dce3980bad350d4b14823c84410474ab7c06 Mon Sep 17 00:00:00 2001 From: Lachlan Donald Date: Mon, 26 Nov 2018 16:00:46 +1100 Subject: [PATCH] Add a basic buildkite pipeline --- .buildkite/pipeline.yml | 27 +++++++++++++++++++++++---- go.mod | 2 ++ go.sum | 4 ++++ 3 files changed, 29 insertions(+), 4 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 5094bc0..6f79455 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,6 +1,25 @@ steps: - - name: ":hammer: :aws:" - command: scripts/test.sh + - label: "🔎" + command: go test ./... plugins: - docker-compose: - run: test + - golang#v2.0.0: + version: 1.11.1 + import: github.com/buildkite/ecs-run-task + environment: + - GO111MODULE=on + + - wait + - label: "🛠" + plugins: + - golang-cross-compile#v1.3.0: + build: "." + import: github.com/buildkite/ecs-run-task + targets: + - version: 1.11.1 + goos: linux + goarch: amd64 + gomodule: "on" + - version: 1.11.1 + goos: windows + goarch: amd64 + gomodule: "on" diff --git a/go.mod b/go.mod index 35a5595..91f9628 100644 --- a/go.mod +++ b/go.mod @@ -7,6 +7,8 @@ require ( github.com/ghodss/yaml v1.0.0 github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af // indirect github.com/kr/pretty v0.1.0 // indirect + github.com/mitchellh/gox v0.4.0 // indirect + github.com/mitchellh/iochan v1.0.0 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/stretchr/testify v1.2.2 // indirect github.com/urfave/cli v1.20.0 diff --git a/go.sum b/go.sum index bb7d2d8..e7aaa37 100644 --- a/go.sum +++ b/go.sum @@ -14,6 +14,10 @@ github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORN github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/mitchellh/gox v0.4.0 h1:lfGJxY7ToLJQjHHwi0EX6uYBdK78egf954SQl13PQJc= +github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= +github.com/mitchellh/iochan v1.0.0 h1:C+X3KsSTLFVBr/tK1eYN/vs4rJcvsiLU338UhYPJWeY= +github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/stretchr/testify v1.2.2 h1:bSDNvY7ZPG5RlJ8otE/7V6gMiyenm9RtJ7IUVIAoJ1w=