-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
47 lines (41 loc) · 1.01 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
language: python
python:
- "3.6"
env:
- X_VERSION=$TRAVIS_TAG
sudo: false
cache:
directories:
- "~/.platformio"
install:
- pip install -U platformio
- platformio update
- platformio lib update
script:
- platformio run
before_deploy:
- find .pioenvs -name "firmware.bin" | xargs -n1 dirname | xargs -n1 basename | xargs -n1 -I{} mv .pioenvs/{}/firmware.bin ./{}.bin
- find .pioenvs -name "firmware.elf" | xargs -n1 dirname | xargs -n1 basename | xargs -n1 -I{} mv .pioenvs/{}/firmware.elf ./{}.elf
deploy:
- provider: releases
api_key: $GITHUB_OAUTH
file_glob: true
file:
- "*.bin"
- "*.elf"
skip_cleanup: true
prerelease: true
on:
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+-.+$
- provider: releases
api_key: $GITHUB_OAUTH
file_glob: true
file:
- "*.bin"
- "*.elf"
skip_cleanup: true
prerelease: false
on:
tags: true
condition: $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+$