Commit Graph

16 Commits

Author SHA1 Message Date
Adrien Delorme 6fe6c08b4d appveyor: remove verbose mode as output is truncated, and I can't see what's wrong 2019-05-03 16:24:18 +02:00
Adrien Delorme 5a896367ef make sure CI builds with GO111MODULE=off 2019-04-11 14:19:25 +02:00
Adrien Delorme 9f82b75e57 Use the hashicorp/go-getter to download files
* removed packer.Cache and references since packer.Cache is never used except in the download step. The download step now uses the new func packer.CachePath(targetPath) for this, the behavior is the same.
* removed download code from packer that was reimplemented into the go-getter library: progress bar, http download restart, checksuming from file, skip already downloaded files, symlinking, make a download cancellable by context.
* on windows if packer is running without symlinking rights and we are getting a local file, the file will be copied instead to avoid errors.
* added unit tests for step_download that are now CI tested on windows, mac & linux.
* files are now downloaded under cache dir `sha1(filename + "?checksum=" + checksum) + file_extension`
* since the output dir is based on the source url and the checksum, when the checksum fails, the file is auto deleted.
* a download file is protected and locked by a file lock,
* updated docs
* updated go modules and vendors
2019-03-13 12:11:58 +01:00
Adrien Delorme 9c9d5cd688 Update appveyor.yml
remove obsolete setenv
2019-03-04 11:17:58 +01:00
Adrien Delorme 297abc3e84 appveyor.yml: timeout tests after 2m 2019-01-24 14:01:23 +01:00
Alexander Georgievskiy d146f0792f Revert "install golang 1.11 on appveyor machines"
This reverts commit 2af4f4d206.
2018-10-04 15:20:21 +03:00
Megan Marsh 2af4f4d206 install golang 1.11 on appveyor machines 2018-08-29 14:45:31 -07:00
Matthew Hooker 8423a0f2cd
fix appveyor 2017-06-06 11:52:21 -07:00
Matthew Hooker 81522dced0
move packer to hashicorp 2017-04-04 13:39:01 -07:00
Christopher Boumenot accd97cf0f Use the default version of Go. (#3498)
AppVeyor install Go 1.6 c:\go by default, and it is already a part of the path.
2016-05-04 15:53:36 -07:00
Christopher Boumenot d296260164 RFC: fix appveyor build (#3464)
No sure if this will work...

Appveyor builds appear to always choke on go vet, so I am removing it. The
Travis build already does it, so I do not think there's much value in
repeating it.
2016-04-22 20:42:01 -07:00
Chris Bednarski 5e898c90c2 Update appveyor spec to go 1.6 2016-03-17 14:17:49 -07:00
Chris Bednarski 6ca15f7e1a Updated appveyor script to (hopefully) work with a vendored build on Windows 2016-02-05 14:08:58 -08:00
Chris Bednarski af2fa705bf Added go vet and git rev-parse head to appveyor so we can see what we're actually building / testing 2015-08-06 12:24:13 -07:00
Emil Hessman bfcd004497 AppVeyor: only build master branch
AppVeyor builds all branches per default.
Add a configuration setting to only build the master branch.

See http://www.appveyor.com/docs/branches#white-and-blacklisting for details.

For the record, AppVeyor builds can skipped by annotating the commit message
according to http://www.appveyor.com/docs/how-to/skip-build
Useful for e.g. website commits.

[skip appveyor]
2015-06-29 20:07:41 +02:00
Emil Hessman a3fa7cdce3 Add AppVeyor configuration file
Packer lacks an official Windows CI server.
This commit adds a configuration file for AppVeyor, which is a Windows CI
service (free for open-source projects).
2015-06-29 18:14:45 +02:00