forked from ShikOfTheRa/scarab-osd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (40 loc) · 1.5 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
# dist: precise
language: python
python:
- '3.6'
sudo: false
cache:
directories:
- "~/.platformio"
env:
- PLATFORMIO_CI_SRC=MW_OSD/
install:
- pip install --upgrade platformio
script:
- platformio run
- cd ./
- mkdir dist
- find . -name "*.hex"
- ls -l ./.pio/build/
- ls -l ./.pio/build/ | grep ^d | tr -s ' ' | cut -d ' ' -f 9 >> filenames.txt;
- while read envname; do echo $envname; cp ./.pio/build/$envname/firmware.hex ./dist/$envname.hex; done < filenames.txt;
- ls -l dist/
deploy:
provider: releases
api_key:
secure: apGXp65aUCmhXb/ExQ5pIOnFyNJcL4yfGt6mhlbnxQQuDbEOZ0mDZJtdf8BDsPdObZaplcFwM+MijymMsXoDL8hzbZm9S0LYJUyIvhCUUZ6KLj+CkydFarSR/F1trPtOcG5Ph5YFZbBDIkUjp2WUMlTdkDy7hykVnJxpHt3xdwZifJDszf+WALyRaGjknNrlc6jc3zbpjvT7cSzbgzwv4/fYlOjlGgtPAHnq1cPEdcBRpw0l6D6zMYL7kbgZgLkgAPTEeb6Azv9MF1v5iP5yaGM/OugdPMyBY3uRY1mYuOo5Q2gyiG2G6a4QOw5y7HTlBt8nn64j2WcaEaf+VI9aCillmhID0mte9xqmQoLn/BCFPJrj+LVQN1AzAhZb7hDtmdyRt63YF6vkBGJ6jJQzrmzS8Z2Gc/vyD+BkohHKbadopk11TXm1BXHMEwzxzwDXkZvCKUcoNCYTumMfW4w1UgqSNs28GTHr6TQceabd/Crtb2wG6p947WbCRxpY+7FCybJFNUrmr1qR/WJPz4Na1FHUhf/Okj+ygGQWy48LoE89eOEXO+PKKaIQvEysey/WF7vM+thv7JVGGTRe5jzikno0l7NzErH09o2DVDCtMf+tedcyoXqme6Jx+CSNPGJA4itmLIpu9hnt9e3RlnmwRmXT8lvnmCZsJBID5eYwrms=
file_glob: true
file: ./dist/*.hex
skip_cleanup: true
overwrite: true
on:
repo: ShikOfTheRa/scarab-osd
# branch: master
tags: true
## How to generate deploy section
# install git
# install gem
# sudo gem install travis
# cd into repo
# $ travis setup releases --force
# follow prompts..