-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: refactor travis to use similar approach in jenkins (#588)
- Loading branch information
Showing
16 changed files
with
223 additions
and
289 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,2 @@ | ||
GO_VERSION: | ||
- "master" |
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 |
---|---|---|
@@ -1,2 +1,8 @@ | ||
GO_VERSION: | ||
- "1.12.0" | ||
- stable | ||
- "1.x" | ||
- "1.8.x" | ||
- "1.9.x" | ||
- "1.10.x" | ||
- "1.11.x" | ||
- "1.12.x" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
if (go run scripts/mingoversion.go 1.10 &>/dev/null); then | ||
go get -v golang.org/x/lint/golint; | ||
go get -v golang.org/x/tools/cmd/goimports; | ||
go get -v github.com/elastic/go-licenser; | ||
fi | ||
|
||
if (! go run scripts/mingoversion.go 1.10 &>/dev/null); then | ||
# Before Go 1.10.0, pin gin-gonic to v1.3.0. | ||
mkdir -p "${GOPATH}/src/github.com/gin-gonic"; | ||
( | ||
cd "${GOPATH}/src/github.com/gin-gonic" && | ||
git clone https://github.com/gin-gonic/gin && | ||
cd gin && git checkout v1.3.0 | ||
); | ||
fi | ||
|
||
if (! go run scripts/mingoversion.go 1.9 &>/dev/null); then | ||
# For Go 1.8.x, pin go-sql-driver to v1.4.1, | ||
# the last release that supports Go 1.8. | ||
mkdir -p "${GOPATH}/src/github.com/go-sql-driver"; | ||
( | ||
cd "${GOPATH}/src/github.com/go-sql-driver" && | ||
git clone https://github.com/go-sql-driver/mysql && | ||
cd mysql && git checkout v1.4.1 | ||
); | ||
# Pin olivere/elastic to release-branch.v6 for Go 1.8. | ||
mkdir -p "${GOPATH}/src/github.com/olivere/elastic"; | ||
( | ||
cd "${GOPATH}/src/github.com/olivere" && | ||
git clone https://github.com/olivere/elastic && | ||
cd elastic && git checkout release-branch.v6 | ||
); | ||
fi |
Oops, something went wrong.