-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
52 lines (45 loc) · 1.19 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
# Continuous Integration (CI) is the practice, in software
# engineering, of merging all developer working copies with a shared mainline
# several times a day < http://docs.platformio.org/en/latest/ci/index.html >
#
# Documentation:
#
# * Travis CI Embedded Builds with PlatformIO
# < https://docs.travis-ci.com/user/integration/platformio/ >
#
# * PlatformIO integration with Travis CI
# < http://docs.platformio.org/en/latest/ci/travis.html >
#
# * User Guide for `platformio ci` command
# < http://docs.platformio.org/en/latest/userguide/cmd_ci.html >
#
#
# Travis CI documentation (see above).
#
language: python
python:
- "2.7"
sudo: false
cache:
directories:
- "~/.platformio"
install:
- pip install -U platformio
- platformio lib -g install 1
before_script:
- cd thing
script:
- platformio run
before_deploy:
- mv ".pio/build/esp12e/firmware.bin" ".pio/build/esp12e/firmware_esp12e.bin"
- mv ".pio/build/sonoff/firmware.bin" ".pio/build/sonoff/firmware_sonoff.bin"
deploy:
provider: releases
api_key: "$GITHUB_OAUTH_TOKEN"
file:
- ".pio/build/esp12e/firmware_esp12e.bin"
- ".pio/build/sonoff/firmware_sonoff.bin"
skip_cleanup: true
draft: true
on:
tags: true