forked from kr15h/ofxPiMapper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (70 loc) · 2.28 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
os: linux
dist: trusty
sudo: required
cache:
timeout: 500
directories:
- cachedir
env:
global:
- IMAGE="opm-${TRAVIS_TAG}.img"
- CACHE_DIR="cachedir"
jobs:
include:
- stage: prepare
env: RPI_ZIP="raspbian_lite-2017-07-05-of_v0.10.0.img.zip" RPI_URL="https://github.com/kr15h/openframeworks-rpi-image/releases/download/v1.0.3/${RPI_ZIP}"
addons:
apt:
packages:
- qemu
- qemu-user-static
- binfmt-support
- parted
- wget
- dosfstools
- zip
script:
- sudo bash ./scripts/ci/rpi/prepare.sh
- if [ -a "${CACHE_DIR}/${IMAGE}.zip" ]; then rm "${CACHE_DIR}/${IMAGE}.zip"; fi
- zip "${CACHE_DIR}/${IMAGE}.zip" "./${IMAGE}"
- stage: build pass a
addons:
apt:
packages:
- qemu
- qemu-user-static
- binfmt-support
- parted
- wget
- dosfstools
- zip
script:
- ls -l
- ls -l "${CACHE_DIR}"
- mv "${CACHE_DIR}/${IMAGE}.zip" "./${IMAGE}.zip"
- sudo bash ./scripts/ci/rpi/build.sh
- zip "${CACHE_DIR}/${IMAGE}.zip" "./${IMAGE}"
- stage: build pass b
addons:
apt:
packages:
- qemu
- qemu-user-static
- binfmt-support
- parted
- wget
- dosfstools
- zip
script:
- mv "${CACHE_DIR}/${IMAGE}.zip" "./${IMAGE}.zip"
- sudo bash ./scripts/ci/rpi/build.sh
- zip "${CACHE_DIR}/${IMAGE}.zip" "./${IMAGE}"
deploy:
provider: releases
api_key:
secure: iUBL9x2cKUWfKEz3S06nOPXwhjXoLCXhlmxdAX+hZCNttZxi3QulKiRP/s9oDjWthnx7peSEongdviUR8ueKlS0PCw8U6i2urz+8EDGaU1ZbZ/jz2c6440JswLdEtWc42eYjDz+vumNHYdVZLf7IZv2aXy4nfD14IhDA6N3KzwOyiN2tefwPq7UTLxjDu31dOVv/6Adasny/lELN03kHneVW6DFGv2LDrR4S8OQ8QYbcKYouDiD67awL3tflmcHamVyOQX4nu2JD3530QqwdOWMdd7lCnfcu/R37vQU2HcYYInYXLRBD2mieEkRJX8qd2FIJA8Daz8309gT+ja0KMuK2iP3QQ7J1T3t2nyDz7tABC96yeqetPRIe9p7blXfS/VTCVFN7x/97MdK8Vr7EpJjHC26HZH+hvuD58R2mzb6Z9T5foDRIunNRK8qtU8GMP2wajBGjJtlkU2ZLvqs8pU/ScdLNO7kugNn+LYdY7XsZul3nGT2H/W5dnGJctzm7B8LTjmte9HQ1Kn3BslnkasNxUiEjYBD/sgyt+IdDknrgV+QpvccnAIIHWzcq+65YQ0KEy3uleb+rcns0NyXlHZSqhlMU9sSagTpztIuerJqDN08BmyDXUbZfnVMgzsyZKuUpZIdo2PwX6dyzjia2sDSl5UjqzwO/PytKoujeW3Q=
file:
- "${CACHE_DIR}/${IMAGE}.zip"
skip_cleanup: true
on:
tags: true