Commit Graph

62 Commits

Author SHA1 Message Date
Wilken Rivera 9ec8b67392
Add golangci-lint to project (#8686)
* Add golangci-lint as linting tool

* Disable failing staticchecks to start; GitHub issue to handle coming soon

* Run `goimports -w` to repair all source files that have improperly
formatted imports

* makefile: Add ci-lint target to run on travis

This change adds a new make target for running golangci-lint on newly
added Go files only. This target is expected to run during Packer ci builds.

* .github/contributing: Add code linting instructions

* travis: Update job configuration to run parallel builds
2020-02-14 11:42:29 -05:00
Adrien Delorme 27d27463a6 Update .travis.yml
use go 1.13
2020-02-07 10:15:01 +01:00
Adrien Delorme 28180de5ad test osx on travis
we need to re-add the osx travis tests as our trial ended with circle-ci
2019-09-27 15:08:22 +02:00
Adrien Delorme 592ff6993a remove appveyor and travis cfg files 2019-09-05 17:17:59 +02:00
Megan Marsh cdd244339b add wait so osx builds dont time out 2019-05-10 09:41:03 -07:00
Megan Marsh 1ab8dab707 remove windows and linux builds from travis, since we do those on circle now. 2019-05-10 09:24:36 -07:00
Adrien Delorme 5a896367ef make sure CI builds with GO111MODULE=off 2019-04-11 14:19:25 +02:00
Megan Marsh 79143ade8f building on go master is just wasting our time. 2019-04-04 14:56:53 -07:00
Adrien Delorme 662f2f845a travis.yml: use go 1.12 2019-03-04 11:17:58 +01:00
Adrien Delorme abd8fbd699 travis-ci: allow failures on windows 2018-10-17 13:44:27 +02:00
Adrien Delorme 5fe672d7c4 travis windows now has mingw by default 2018-10-17 11:42:51 +02:00
Adrien Delorme 4d466a0ba7 .travis.yml: remove GOMAXPROCS setting 2018-10-17 11:21:46 +02:00
Adrien Delorme 16f1b7e88c .travis.yml: don't limit to 2 CPUs
* this might fix a timeout
2018-10-17 10:55:14 +02:00
Adrien Delorme ec4326c6fc .travis.yml: break lines in windows settings 2018-10-17 10:46:42 +02:00
Adrien Delorme 4edace1e24 df -h 2018-10-16 18:23:11 +02:00
Adrien Delorme 586be1ec46 group choco install make/mingw together & export correct path 2018-10-16 16:57:34 +02:00
Adrien Delorme 9a1a2d76ce travis-ci: disable cgo for windows 2018-10-16 16:46:05 +02:00
Adrien Delorme 0602cbd47e travis: put windows first 2018-10-16 16:23:07 +02:00
Adrien Delorme cdd8d85ae9 install mingw 2018-10-16 16:23:07 +02:00
Adrien Delorme 3228820c24 travis windows: install make 2018-10-16 15:44:49 +02:00
Adrien Delorme 80f7d01d7e test on windows using travis-ci 2018-10-16 15:29:30 +02:00
Matthew Hooker 132876b3ac
remove 1.10.x from travis matrix
go changed formatting behavior between .10 and .11 One option is to
download a specific version of gofmt but rather than do that we are
removing .10 tests.

Packer only supports the latest version of go, so it's unnecessary to
test on prior version. Previously we tested on .9 and .10 because go
changed the way tar encoding worked. We wanted to support .9 so users
would have a b/c option if needed. As we move forward that's become
unnecessary.
2018-08-24 16:11:54 -07:00
Matthew Hooker 2d0efacbc3
travis builds go 1.11. remove 1.9 2018-08-24 15:52:43 -07:00
Matthew Hooker 5952892e10
add back in tests on latest go, but allow it to fail.
this is an important early warning sign, and I think it's good to add it back in
in a way that doesn't cause the build to fail.
2018-06-28 14:49:09 -07:00
M. Marsh 67aa8f3a74
Merge branch 'master' into go-versions 2018-06-27 14:07:26 -07:00
Matthew Hooker ce40e9cc86
only test on .10.x 2018-06-26 16:18:20 -07:00
James Nugent d142055ab1 build: Remove old versions of Go on Travis CI
There is no real value in continuing to build against versions of Go
which are not the latest (1.10.2 right now). This can easily be
expressed in the `.travis.yml` file as `1.x`, to mean the latest version
in the Go 1 series, which is (presumably) what is being used for
releases.

Keeping older versions around is causing spurious CI failures, and
increases the cycle time to feedback for pull requests: see
hashicorp/packer#6265 for an example of this.
2018-05-22 11:16:25 +04:00
M. Marsh eb557af8bf
Merge branch 'master' into f-autocomplete 2018-04-26 11:18:37 -07:00
Matthew Hooker 14e3effa83
test on go 1.9.x branch, remove 1.7.x from tests 2018-02-16 12:00:33 -08:00
Davor Kapsa f0580c6f3a
travis: update 1.7 and 1.8 go versions
.x match latest patch
2017-12-20 15:36:02 +01:00
Matthew Hooker 8970722845
use latest go for travis tests 2017-12-04 10:43:38 -08:00
Jeremy Voorhis 4303c3bae8 Drop go 1.7.4 for Travis builds 2017-10-13 12:11:22 -07:00
Matthew Hooker 5eb14ad642
add go 1.9 to travis 2017-08-24 16:21:55 -07:00
Matthew Hooker 07c09fee32
test on travis with go 1.8.3 2017-06-06 14:50:38 -07:00
Matthew Hooker 0cc9a1e79f
travis build 1.8 2017-02-21 11:59:14 -08:00
Matthew Hooker e04f87effe
bump 1.8 version 2017-02-08 15:43:16 -08:00
Matthew Hooker 5d06d468b4
test with go 1.7 and 1.8beta 2016-12-06 16:32:32 -08:00
Matthew Hooker fd1cc471f9
add user to travis for ansible builds 2016-11-10 12:08:20 -08:00
Chris Bednarski 0d4ee09ea5 Remove go 1.4 from the build matrix 2016-03-14 21:00:23 -07:00
Chris Bednarski cfbd7b35d3 If go version is 1.4 use godeps to restore dependencies 2016-02-23 23:26:45 -08:00
Chris Bednarski 0db59e055c Revert "Set a custom travis install so godeps doesn't get called"
This reverts commit c23749afe0.
2016-02-23 23:01:32 -08:00
Chris Bednarski c23749afe0 Set a custom travis install so godeps doesn't get called 2016-02-23 22:32:35 -08:00
Chris Bednarski 24a234f9ac Update travis versions 2016-02-23 22:23:22 -08:00
Chris Bednarski c1ac120828 Bump go 1.5 to 1.5.3 2016-01-27 12:47:45 -08:00
Chris Bednarski 1b0ea606f8 Go 1.5 should pass, since we do release builds with this now 2015-12-09 20:15:37 -08:00
Chris Bednarski a55d2f1243 Allow failures in 1.5 since the build scripts don't support switching for 2015-08-22 14:14:58 -07:00
Chris Bednarski 938f2178d7 Overhaul the Makefile
- Fix updatedeps reverting to master, which causes Travis CI to produce invalid results for pull-request builds. The makefile attempts to detect this change and checkout the correct branch if it happens.
- Clean up the code style and failure messaging.
- Add / update proxy targets for common workflows: default, deps, ci, release
2015-08-21 18:25:58 -07:00
Chris Bednarski 728c5cea6e Also deprecate go version 1.3 2015-05-26 14:12:04 -07:00
Chris Bednarski 9db0cced8a Removed go 1.2 from Travis.ci config 2015-05-26 14:01:50 -07:00
Seth Vargo e3c2f01cb8 Test Go 1.4 2015-01-23 10:20:57 -05:00