diff --git a/.travis.yml b/.travis.yml index fd8b75d9..0fa74cd9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,14 +2,17 @@ sudo: true language: bash dist: bionic +env: + - PACKER_VERSION=1.7.6 + jobs: include: - env: PROVIDER=qemu TEMPLATE=windows_10 VIRT_GROUP=kvm install: # Install Packer. Travis ships with Packer 1.3, which is fairly old -- wget -nv -nc -O packer_1.6.0_linux_amd64.zip https://releases.hashicorp.com/packer/1.6.0/packer_1.6.0_linux_amd64.zip -- sudo unzip -o packer_1.6.0_linux_amd64.zip -d /usr/local/bin +- wget -nv -nc -O packer_$PACKER_VERSION_linux_amd64.zip https://releases.hashicorp.com/packer/$PACKER_VERSION/packer_$PACKER_VERSION_linux_amd64.zip +- sudo unzip -o packer_$PACKER_VERSION_linux_amd64.zip -d /usr/local/bin # Install ansible - sudo add-apt-repository -y ppa:ansible/ansible