pwnagotchi/.travis.yml

31 lines
564 B
YAML
Raw Normal View History

2019-09-27 20:07:42 +02:00
dist: bionic
language: go
go:
- 1.x
2019-09-27 20:07:42 +02:00
env:
global:
- LANG=C
- LC_ALL=C
2019-09-27 20:07:42 +02:00
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
2019-09-27 20:07:42 +02:00
cache:
apt: true
directories:
- tmp/
2019-09-27 20:07:42 +02:00
before_script:
- sudo apt-get -y update
2019-10-02 18:09:02 +01:00
- sudo apt-get -y install qemu-user-static binfmt-support qemu bmap-tools kpartx
2019-09-27 20:07:42 +02:00
- sudo update-binfmts --display
2019-10-02 18:46:08 +01:00
- sudo -E env "PATH=$PATH" make install
2019-09-27 20:07:42 +02:00
script:
2019-10-02 18:46:08 +01:00
- sudo make -e PWN_HOSTNAME="pwnagotchi" VERSION="$TRAVIS_TAG"
2019-09-27 20:07:42 +02:00
# TODO: deploy!