From 99062dcf233ec379675a648b82f99e296c237a26 Mon Sep 17 00:00:00 2001 From: Kilian Engelhardt Date: Mon, 21 Aug 2017 12:08:24 +0200 Subject: add travis file to validate vagrant.json --- .travis.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4dd6fcc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,21 @@ +language: generic +dist: trusty +sudo: false + +env: + matrix: + - DIST=trusty + global: + - PACKER_ZIP="packer_1.0.4_linux_amd64.zip" + - PACKER_URL="https://releases.hashicorp.com/packer/1.0.4/packer_1.0.4_linux_amd64.zip" + +install: +- wget "${PACKER_URL}" +- unzip "${PACKER_ZIP}" + +script: +- ./packer --version +- ./packer validate vagrant.json + +notifications: + - email: false -- cgit v1.2.3 From 14754c444c1c3f94dce0277885ce607da8337588 Mon Sep 17 00:00:00 2001 From: Kilian Engelhardt Date: Mon, 21 Aug 2017 12:43:11 +0200 Subject: add comment why packer's version is hardcoded As of writing there is no 'latest' (hashicorp/packer/issues/5265) --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 4dd6fcc..d698deb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ env: matrix: - DIST=trusty global: + # 20170821: as of writing there is no 'latest' (hashicorp/packer/issues/5265) - PACKER_ZIP="packer_1.0.4_linux_amd64.zip" - PACKER_URL="https://releases.hashicorp.com/packer/1.0.4/packer_1.0.4_linux_amd64.zip" -- cgit v1.2.3