mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
initial packer/ansible base builder
This commit is contained in:
15
.travis.yml
15
.travis.yml
@ -1,23 +1,28 @@
|
|||||||
dist: bionic
|
dist: bionic
|
||||||
language: generic
|
language: go
|
||||||
|
go:
|
||||||
|
- 1.x
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- LANG=C
|
- LANG=C
|
||||||
- LC_ALL=C
|
- LC_ALL=C
|
||||||
|
|
||||||
before_cache:
|
before_cache:
|
||||||
- mountpoint -q $TRAVIS_BUILD_DIR/tmp/mnt && sudo umount -R $TRAVIS_BUILD_DIR/tmp/mnt
|
- mountpoint -q $TRAVIS_BUILD_DIR/tmp/mnt && sudo umount -R $TRAVIS_BUILD_DIR/tmp/mnt
|
||||||
- sudo find $TRAVIS_BUILD_DIR/tmp/ -name '*.img' -delete
|
- sudo find $TRAVIS_BUILD_DIR/tmp/ -name '*.img' -delete
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
apt: true
|
apt: true
|
||||||
directories:
|
directories:
|
||||||
- tmp/
|
- tmp/
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- sudo apt-get -y update
|
- 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
|
- sudo update-binfmts --display
|
||||||
- unset GOROOT
|
|
||||||
script:
|
script:
|
||||||
- sudo ./scripts/create_sibling.sh -n pwnagotchi -o pwnagotchi.img
|
- sudo make -e PWN_HOSTNAME="pwnagotchi" VERSION="$TRAVIS_TAG"
|
||||||
- zip -s 2g pwnagotchi.zip pwnagotchi.img
|
|
||||||
|
|
||||||
# TODO: deploy!
|
# TODO: deploy!
|
||||||
|
Reference in New Issue
Block a user