Merge pull request #16 from dadav/feature/travis

Add travis support
This commit is contained in:
evilsocket 2019-09-28 20:34:51 +02:00 committed by GitHub
commit 02fb5171a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 2 deletions

23
.travis.yml Normal file
View File

@ -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!

View File

@ -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
</root/pwnagotchi/scripts/requirements.txt xargs -I{} --max-args=1 --max-procs="$(nproc)"\
pip3 install {} >/dev/null 2>&1
pip3 install --progress-bar off {}
# waveshare
pip3 install spidev RPi.GPIO