commit
02fb5171a8
23
.travis.yml
Normal file
23
.travis.yml
Normal 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!
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user