Skip to content

Test with Go 1.12 #927

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 27, 2019
Merged

Test with Go 1.12 #927

merged 1 commit into from
Mar 27, 2019

Conversation

ceh
Copy link
Contributor

@ceh ceh commented Mar 25, 2019

Add Go 1.12 to Travis CI build matrix.

AppVeyor doesn't seem to support Go 1.12 out of the box yet according to https://www.appveyor.com/docs/windows-images-software/#golang, deferring for later.

Makefile Outdated
go get golang.org/x/sys/unix
go get golang.org/x/sys/windows

.PHONY: \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't .PHONY supposed to be at the top of the file?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.travis.yml Outdated
@@ -6,10 +6,7 @@ matrix:
include:
- go: 1.10.x
install:
- go get github.com/stretchr/testify/assert
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of introducing a new Makefile, which doesn't do much, how about adding a before_install block that is common to all blocks? https://docs.travis-ci.com/user/customizing-the-build/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't that block be executed for the go module builds as well? I didn't add one because I don't wan't a go get to interfere or pollute the namespace before go mod download is executed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, you're right. Good thinking.

Makefile Outdated
@@ -0,0 +1,8 @@
installtestdeps:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather not add a makefile for just a single phony target.

@ceh
Copy link
Contributor Author

ceh commented Mar 27, 2019

Updated the PR to not use a Makefile.

@dgsb dgsb merged commit 1115b87 into sirupsen:master Mar 27, 2019
@dgsb
Copy link
Collaborator

dgsb commented Mar 27, 2019

@ceh thanks for your contribution

cgxxv pushed a commit to cgxxv/logrus that referenced this pull request Mar 25, 2022
@ceh ceh deleted the ci-go-1-12 branch April 12, 2023 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants