forked from abersailbot/dewi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (25 loc) · 1.74 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: generic
sudo: true
dist: trusty
before_install:
- sudo apt-get update
- sudo apt-get install qemu-system-arm wget xz-utils sshpass ansible
install:
- wget "https://kragniz.eu/pub/2015-11-21-raspbian-jessie-lite.img.xz"
- unxz "2015-11-21-raspbian-jessie-lite.img.xz"
- git clone https://github.com/polaco1782/raspberry-qemu.git
before_script:
- mkdir -p ~/.ssh/
- printf 'Host localhost\n User pi\n Port 10022\n StrictHostKeyChecking no' > ~/.ssh/config
- cat ~/.ssh/config
- qemu-system-arm -kernel raspberry-qemu/kernel-qemu -cpu arm1176 -m 256 -M versatilepb -no-reboot -serial stdio -append "root=/dev/sda2 panic=1 rootfstype=ext4 rw" -net user,hostfwd=tcp::10022-:22 -net nic -display none -hda 2015-11-21-raspbian-jessie-lite.img &
- ./test/wait-for-ssh
- ssh-keygen -f ~/.ssh/id_rsa -t rsa -N ''
- sshpass -p raspberry ssh-copy-id -o StrictHostKeyChecking=no pi@localhost -p 10022
script:
- ./test/run-on-pi "cat /etc/os-release"
- ./deploy localhost
notifications:
slack:
rooms:
secure: WpyAaszbggP94p73r+p4uC2hZKqV01ftCZaL8CZ1z0xSfuNH+eTd/8I2PDMwfixrUazkItnhO/TFxrnVO3iY7Ffuebj7JkiHHWtho/3ZjhLQbrA4A2B2tBcelHdk7RmV26625T1LuDeJ87f7tKIsRWRnD0L6USn5qwGVIQWURKJeMwMReghjGfj3n7dHU6rKVBt51ROt8Ue0cI0iptNgmriSPmRaED+sX5+qG1mH/aToe3SccpLRHs88nTHFEZudpbNLZbx2s4nLGc7okQvVQ6EHRPbMwBb4s/gOV6vOR2+M1ucLI3Zc1bHE3UuxMh9gqGiMnpz4V7PiQMgZtYZPUm1XP1A0js1NKhAbPa2gr5ty4IbtXtD5jBps8gn9lMvDgexOniLBqwOOzulmHYv8K+X0vwEP9CiBBS+IK8fGy7nhDb5zHYQ9Hn1OHafICESL6RupKOObsmfYp1kxBPyhsgjetC+Pn1r9MTacB5QYNy51iTcCk5deD12wiejKp7fMzPO/ocKMt74rCEQJKk3MqdKb+ECxvq0FlkjT1TLWWDLmzzTpEiH88GIfZ4fl2yXhNfBHIe3vpQcVEpIE5r1OdlrBRWfvn0+PJo2mPVcPJc1oALSF6ptdkZ2wfF//mnmoUByXhKHnOS6ZQN0pheTUDiMd67Vmg1nQHuPi11PKX6A=