Commit Graph

159 Commits

Author SHA1 Message Date
xinau f5b13e3cb5 added inspec.io provisioner 2019-01-20 15:43:47 +00:00
Megan Marsh f51707630d clean up config.yml and decrease number of parallel processes in build 2018-11-19 16:02:43 -08:00
Adrien Delorme 03620d15c2 Makefile: make find work on windows using `-executable` instead of `-perm +111` 2018-10-16 16:23:07 +02:00
Adrien Delorme 69d59a83c2 Makefile: remove unrequired deps from test 2018-10-16 15:29:01 +02:00
Adrien Delorme 401fddbd33 Makefile remove duplicate go get 2018-10-16 15:28:35 +02:00
Adrien Delorme 161eb23978 makefile: put .PHONY at the top ? 2018-10-16 14:59:16 +02:00
Adrien Delorme ac29ee59f8 makefile: ci now runs only testrace, default runs testrace 2018-10-16 12:08:52 +02:00
Adrien Delorme 8936ddaedf makefile: testrace now uses `deps fmt-check mode-check vet` 2018-10-16 12:05:05 +02:00
Adrien Delorme 389280a530 makefile: refactor vet into it's own command 2018-10-16 12:04:41 +02:00
Adrien Delorme 09e0f2b93b makefile: mode-check ignore ./website/tmp folder 2018-10-16 12:00:15 +02:00
Megan Marsh 268886b7d3 exclude git files (including git hooks) from the executable check 2018-09-06 10:23:58 -07:00
Matthew Hooker 725596268b
Whitelist website vendor from mode check 2018-08-31 11:35:58 -07:00
Matthew Hooker 62014840b4
remove sync from makefile since we commit vendor directory. 2018-08-24 20:52:47 -07:00
Rickard von Essen b8adf689fd Check that only certain files are executable 2018-08-15 16:08:50 +02:00
Megan Marsh 66c45273fb
Merge pull request #6494 from double16/vagrant-docker
Vagrant post-processor for using a Docker image
2018-07-23 12:18:52 -07:00
Patrick Double 4f9a91012f Change docker-push to return docker-import artifact 2018-07-20 15:27:29 -05:00
Matthew Hooker 9384f322f6
Prevent make fmt from failing in default case
Apologies for the terrible hack. This just makes sure we always have
a default file to format, so if the unformatted list is empty
we don't error.
2018-07-17 13:30:10 -07:00
jabbera 4662d3eb95 make deps should download goimports 2018-07-09 14:49:32 -04:00
Matthew Hooker fac6b2e71b
don't send every source file through the shell 2018-05-01 22:55:10 -07:00
Matthew Hooker c163fbed35
use xargs to check for formatting 2018-05-01 20:39:48 -07:00
Matthew Hooker 2fc67f2210
Revert "Merge pull request #4494 from tb3088/EOL-handling"
This reverts commit dfe4f56c75, reversing
changes made to e90c87f885.

Revert changes to makefile and format checker
2018-05-01 13:09:55 -07:00
M. Marsh dfe4f56c75
Merge pull request #4494 from tb3088/EOL-handling
Eol handling for the Repo and build process
2018-05-01 13:00:15 -07:00
Matthew Hooker c6299972b9
s/boot_command/bootcommand/ 2018-04-19 14:26:31 -07:00
Matthew Hooker 673245afcf
Replace boot command parser with PEG parser. 2018-04-19 14:26:28 -07:00
Matthew Patton 049e1bbf73 too many files for shell during Make, convert .go and .sh to EOL=lf 2018-04-07 05:22:39 -04:00
Matthew Hooker 70426af4eb
update contributing link 2018-04-02 10:59:59 -07:00
Matthew Hooker 7349e4fbab Merge pull request #5082 from nak3/makefile-copy-binary
Copy binary under the bin directory
2017-10-13 14:40:15 -07:00
Billie Cleek e7b0785380 support default GOPATH
set GOPATH as an explicit Make variable instead of relying on the
environment variable so that contributors that use the default GOPATH
without setting the GOPATH environment variable can build the dev
target.
2017-07-22 08:45:34 -07:00
Kenjiro Nakayama edabd87ea8 Copy binary under the bin directory 2017-06-29 10:53:19 +09:00
Matthew Hooker bcc0d24bf4
run docs through pandoc 2017-06-14 18:13:46 -07:00
Matthew Hooker d6a0068c2d
don't echo build command in make 2017-05-22 15:03:21 -07:00
Matthew Hooker 97892349dd
vastly speed up dev builds.
Copies work from hashicorp/consul#2924
2017-05-04 20:30:09 -07:00
Matthew Hooker 3a79620e92 fail test target if we have gofmt problems 2016-11-01 14:07:00 -07:00
Matthew Hooker b8893e1aa4 fix fmt and add check 2016-11-01 13:48:10 -07:00
Matthew Hooker b74b7548f4 remove fmt as test dependency 2016-11-01 13:16:23 -07:00
David Campbell 1234b1353c make fmt
- `gofmt` simplify and write to source
2016-10-22 17:36:44 -07:00
Matthew Hooker b79cdb3e47 incorporates feedback from pr 2016-10-05 16:14:02 -07:00
Matthew Hooker fb8ced982a removes vendor make target
documents how to correctly add deps

removes unused dependencies

installs govendor as part of deps make target
2016-10-05 15:50:17 -07:00
Matthew Hooker d08f1b503f Applies govenor migrate godep
Updates contributing and make file

Removes empty vendor package

Removes go 1.4 logic
2016-10-05 15:49:22 -07:00
Matthew Hooker c8f64a44fe correct gofmt invocation 2016-09-29 14:21:16 -07:00
Rickard von Essen 936aaa0889 Self documenting Makefile (#3290) 2016-08-14 15:28:29 +02:00
Chris Bednarski aa47c90ddd Udpdated test/race timeouts to 2m because AWS seems to be taking a while 2016-05-06 23:15:05 -07:00
Christopher Boumenot 728c496370 Move version to its own package. (#3460) 2016-04-21 13:19:43 -07:00
Chris Bednarski e9d0c8980c Change to the vet built-in because cmd/vet is no longer available 2016-04-07 16:34:54 -07:00
Chris Bednarski 71b593a265 Increase test timeout to 30s to accomodate longer Azure test 2016-03-14 20:46:22 -07:00
Chris Bednarski f25be250c7 Increase test -race timeout 2016-03-14 20:08:36 -07:00
Chris Bednarski d77b1612d4 Added example templates for Azure 2016-03-14 20:08:35 -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 d7f5f02831 Update dist scripts to use hc-releases instead of bintray 2016-02-17 20:11:25 -08:00
Chris Bednarski 7d90d3f0d0 Added fmt and vendor to the makefile 2016-02-12 11:37:49 -08:00
Chris Bednarski a36a9bf53d Remove tee so exit code 1 is passed up to the shell and properly fails the build when tests are failing 2016-02-08 20:02:56 -08:00
Chris Bednarski 4335d2f13a Update the makefile to work with vendored dependencies 2016-02-05 11:18:11 -08:00
Chris Bednarski e61fa1aed1 Add some sneaky missing deps 2016-02-04 17:33:03 -08:00
Chris Bednarski c6b9d2a318 Revert "Added gosigar to the makefile so x-compile works"
This reverts commit a2b1f0518c.
2016-02-02 12:44:41 -08:00
Chris Bednarski a2b1f0518c Added gosigar to the makefile so x-compile works 2016-01-26 17:11:15 -08:00
Chris Bednarski b6bf2f899e Update makefile to tee test logs to a file so it's easier to review them after the run complete 2015-10-14 16:32:21 -07:00
Alvaro Miranda 81f3296dd5 remove backquotes from Makefile
backquotes get evaluated in WARN message, replacing with simple quotes
2015-10-14 17:54:01 +13:00
Chris Bednarski e384df4397 Add warning that dev builds should not be shipped to production 2015-10-07 16:51:04 -07:00
Chris Bednarski 52e7f89571 Split bin from prerelease guard so we can cross-compile dev builds 2015-10-07 15:33:01 -07:00
Jarl Friis 8ab4a5f3a5 Makefile fix 2015-09-26 13:33:30 +02:00
Chris Bednarski 547e9dd340 Add deps pre-target and remove testrace sadness from ci 2015-08-21 18:37:51 -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 f40ccd55ad Added debug output to the makefile so I can see which commit travis is building 2015-08-06 11:02:57 -07:00
Chris Bednarski e73ec1f70d Use go vet instead of go tool vet, and actually run it with make 2015-08-03 11:16:17 -07:00
Chris Bednarski 87bcfc3ef7 Ignore internal packages for go 1.5; thanks @dlsniper 2015-07-30 16:15:55 -07:00
Mitchell Hashimoto 6f7818980c Update updatedeps 2015-06-15 13:50:01 -07:00
Chris Bednarski d393bb5112 make updatedeps will actually update now 2015-06-15 10:30:45 -07:00
Chris Bednarski 295f7a2ebd Fail the build when govet returns non-zero exit code 2015-06-01 15:40:43 -07:00
Mitchell Hashimoto 0e1fd516c2 Add testacc to Makefile 2015-05-26 13:26:22 -07:00
Emil Hessman ffd570fe3c Makefile: add vet target 2015-02-25 05:43:18 +01:00
Mitchell Hashimoto 7e4dfcd283 Cleanup updatedeps more 2014-10-28 12:37:11 -07:00
BlackEagle 22ef1dfd89 Fix make updatedeps
Since the fork mitchellh/gophercloud-fork-40444fb is used for
gophercloud the folder rackspace/gophercloud does not exist and the
version fix does not have to happen.

Signed-off-by: BlackEagle <ike.devolder@gmail.com>
2014-10-28 20:25:26 +01:00
Josh Graham c22eda1e43 Do not use latest version of rackspace/gophercloud
- This is not a sustainable dependency management technique
2014-10-27 12:28:52 +11:00
Josh Graham 90c2c4ad95 Revert "Do not use latest version of rackspace/gophercloud"
This reverts commit c91de565e6.
2014-10-27 11:44:41 +11:00
Josh Graham c91de565e6 Do not use latest version of rackspace/gophercloud 2014-10-27 11:34:55 +11:00
Mathias Meyer 971cdd22d7 Run two builds in parallel with go get.
By default, go get determines parallelism based on the number of
cores available. Those show up as 32 in the Travis CI environment
but a virtual machine is limited both by the amount of cores it
has allocated and the amount of memory available to it. 32 parallel
build processes are likely to exhaust the memory resources, leading
to killed processes.

This change reduces the number of builds running concurrently to 2,
which should reduce the likelihood of memory exhaustion greatly.

The number could probably be dialed up a little bit, but this should
give a good default reflecting the environment's resources.
2014-09-11 07:55:07 +02:00
Mitchell Hashimoto 2788ccc653 Update scripts to latest HashiCorp style 2014-09-02 15:13:55 -07:00
Sudharshan S 02e7161b29 Install gox during build time
Just so that we can just run `make` without installing gox separatelyy
2014-07-19 22:02:49 +05:30
Ross Smith II 55016b881a another attempt at fixing echo -e 2014-04-21 10:50:28 -07:00
Ross Smith II afd2e2d033 removed extraneous -e from make output [GH-991] 2014-04-21 09:30:51 -07:00
Christian Berendt e7e30acaec fixing colored output of Makefile
The colored output is broken when using Zsh.

\033[32;01m==> Installing dependencies\033[0m
\033[32;01m==> Building\033[0m

After adding the parameter -e to echo I get the expected green lines.
2014-03-31 14:21:01 +02:00
Mitchell Hashimoto 2b884d194e update makefile to latest 2013-11-18 15:37:14 -08:00
Matthew Hooker d3c2b3492c use interactive shell to run build script. 2013-09-24 01:40:42 -07:00
Mitchell Hashimoto 3eb744249f make updatedeps updates the core deps too 2013-09-22 09:55:01 -07:00
Mitchell Hashimoto 3f4c9a500e Add clean to .PHONY list in Makefile 2013-09-22 09:54:21 -07:00
Mitchell Hashimoto a2e6e8b398 Add updatedeps to .PHONY list in Makefile 2013-09-22 09:53:53 -07:00
Matthew Hooker dcb1bb7624 updatedeps target. 2013-09-17 04:35:07 -07:00
Mitchell Hashimoto 9fb38cc9d6 add `make deps` 2013-08-13 21:42:08 -04:00
Radu Voicilas f415fc18ef Add a clean target to the Makefile 2013-07-18 10:40:23 -04:00
Eric Lathrop ff0647bc6c Remove newline from test import paths.
When running "make test" on my machine, I got many unrecognized import
path errors, and the path showed a trailing "\n". Changing the go list
format to remove the newline fixed these.
2013-07-01 19:25:23 -04:00
Julian Phillips c077232744 Fix building on Ubuntu
1) /bin/sh is not /bin/bash, so build.sh needs to explictly use /bin/bash
2) dash's echo does not support \x, but it does support \0 (since dash is
   /bin/sh, it gets used by Makefiles).
2013-06-30 13:15:19 +01:00
Mitchell Hashimoto df6de5beab move scripts into the scripts/ folder 2013-06-19 22:44:02 -07:00
Mitchell Hashimoto 7eb8daaa9c Much better Makefile coupled with shell script 2013-05-23 21:57:30 -07:00
Mitchell Hashimoto d6efe3c757 builder/amazonebs, plugin/builder-amazon-ebs 2013-05-08 22:34:20 -07:00
Mitchell Hashimoto 04563764a0 `packer build` now communicates through RPC! 2013-05-07 11:50:42 -07:00
Mitchell Hashimoto 91ade277a6 Create the build command/plugin 2013-05-07 11:39:32 -07:00
Mitchell Hashimoto 9849a98b6b Show the stderr for when test builds fail 2013-04-20 18:17:44 -06:00
Mitchell Hashimoto c2ee139973 Don't install test dependencies 2013-04-15 14:41:57 -07:00
Mitchell Hashimoto d9b07bcf4a Ignore Makefile change 2013-04-15 14:36:53 -07:00
Mitchell Hashimoto 85f177b98a update makefile to clear pkg to force rebuilding of our packages 2013-04-15 14:36:27 -07:00