forked from diyhue/Lights
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (51 loc) · 1.58 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
language: c
sudo: false
cache:
directories:
- ~/arduino_cli
- ~/.arduino15/packages/
git:
depth: false
quiet: true
env:
global:
- ARDUINO_CLI_VERSION="0.3.4-alpha.preview"
- COMMIT=${TRAVIS_COMMIT::8}
matrix:
- SKETCH="Generic_RGBW_Light"
- SKETCH="Generic_RGB_Light"
- SKETCH="Generic_CCT_Light"
- SKETCH="Generic_RGB_CCT_Light"
- SKETCH="Generic_WS2812_Strip"
- SKETCH="Generic_SK6812_Strip"
# No update for version 2.0
#- SKETCH="Generic_Dimmable_Light"
#- SKETCH="Generic_ON_OFF_device"
#- SKETCH="Generic_ON_OFF_device_433Mhz"
#- SKETCH="EspLight-fridgefire"
#- SKETCH="MY92XX_RGBW_Light"
#- SKETCH="Sonoff_S20"
#- SKETCH="WS2811_adjustable"
#- SKETCH="WS2812BHueRing"
#- SKETCH="sk6812_wwa"
# Compile error
#- SKETCH="fastLED_SM16726_RGBW_Bulb"
#- SKETCH="P9813_ledstrip_chainable"
install:
- bash ${TRAVIS_BUILD_DIR}/install.sh
- export PATH="$HOME/arduino_cli:$PATH"
script:
# Compile the sketch for NodeMCU board
- arduino-cli compile --fqbn esp8266:esp8266:nodemcu ${TRAVIS_BUILD_DIR}/Arduino/$SKETCH/$SKETCH.ino --output ${TRAVIS_BUILD_DIR}/Arduino/bin/$SKETCH.bin
# Push build files to repo
after_success:
- >
if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
cd ${TRAVIS_BUILD_DIR}
git checkout master
git add *
git commit --message "Build $SKETCH #${COMMIT} [skip travis]"
git remote add origin-travis https://${GH_TOKEN}@github.com/diyhue/Lights.git
git pull origin-travis master
git push origin-travis master
fi