diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..b173709 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,23 @@ +dist: bionic +language: generic +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 +- sudo update-binfmts --display +- unset GOROOT +script: +- sudo ./scripts/create_sibling.sh -n pwnagotchi -o pwnagotchi.img -s 4 +- zip -s 2g pwnagotchi.zip pwnagotchi.img + +# TODO: deploy! diff --git a/scripts/create_sibling.sh b/scripts/create_sibling.sh index 6894fa0..81bff79 100755 --- a/scripts/create_sibling.sh +++ b/scripts/create_sibling.sh @@ -85,7 +85,7 @@ function setup_raspbian(){ parted -s "$LOOP_PATH" rm 2 parted -s "$LOOP_PATH" mkpart primary "$PART2_START" 100% echo "[+] Check FS" - e2fsck -f "${LOOP_PATH}p2" + e2fsck -y -f "${LOOP_PATH}p2" echo "[+] Resize FS" resize2fs "${LOOP_PATH}p2" echo "[+] Device is ${LOOP_PATH}" @@ -153,7 +153,7 @@ function provision_raspbian() { pip3 install gast==0.2.2 /dev/null 2>&1 + pip3 install --progress-bar off {} # waveshare pip3 install spidev RPi.GPIO