From 610bd46572ee9aaeef397580c19ceff131dc3ea4 Mon Sep 17 00:00:00 2001 From: Cassiano Aquino <cassianoaquino@me.com> Date: Wed, 2 Oct 2019 16:40:58 +0100 Subject: [PATCH] initial packer/ansible base builder --- .travis.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index a62fa93..b7167a6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,28 @@ dist: bionic -language: generic +language: go +go: + - 1.x + env: global: - LANG=C - LC_ALL=C + before_cache: - mountpoint -q $TRAVIS_BUILD_DIR/tmp/mnt && sudo umount -R $TRAVIS_BUILD_DIR/tmp/mnt - sudo find $TRAVIS_BUILD_DIR/tmp/ -name '*.img' -delete + cache: apt: true directories: - tmp/ + before_script: - sudo apt-get -y update -- sudo apt-get -y install qemu-user-static binfmt-support qemu bmap-tools +- sudo apt-get -y install qemu-user-static binfmt-support qemu kpartx - sudo update-binfmts --display -- unset GOROOT + script: -- sudo ./scripts/create_sibling.sh -n pwnagotchi -o pwnagotchi.img -- zip -s 2g pwnagotchi.zip pwnagotchi.img +- sudo make -e PWN_HOSTNAME="pwnagotchi" VERSION="$TRAVIS_TAG" # TODO: deploy!