forked from forkineye/ESPixelStick
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
69 lines (69 loc) · 3.14 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
language: generic
env:
global:
- IDE_VERSION=1.8.1
- ESP_HOME=$HOME/ide/hardware/esp8266com
- LIB_HOME=$HOME/Arduino/libraries
- ESPS_HOME=$HOME/Arduino/ESPixelStick
- BUILD=$HOME/build
- DIST=$ESPS_HOME/dist
- STAMP=$(date +'%Y%m%d%H%M%S')
- DIST_FILE=ESPixelStick_TRAVIS-$STAMP.zip
before_install:
- wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz
- tar xf arduino-$IDE_VERSION-linux64.tar.xz
- mv arduino-$IDE_VERSION $HOME/ide
- export PATH="$HOME/ide:$PATH"
- mkdir -p $LIB_HOME
- mkdir -p $ESP_HOME
- mkdir -p $BUILD
- git clone https://github.com/esp8266/Arduino.git $ESP_HOME/esp8266
- cd $ESP_HOME/esp8266
- git checkout 2.7.4
- git submodule update --init
- cd $ESP_HOME/esp8266/tools
- python get.py
- git clone https://github.com/bblanchon/ArduinoJson $LIB_HOME/ArduinoJson
- git clone https://github.com/forkineye/ESPAsyncE131 $LIB_HOME/ESPAsyncE131
- git clone https://github.com/me-no-dev/ESPAsyncTCP $LIB_HOME/ESPAsyncTCP
- git clone https://github.com/me-no-dev/ESPAsyncUDP $LIB_HOME/ESPAsyncUDP
- git clone https://github.com/me-no-dev/ESPAsyncWebServer $LIB_HOME/ESPAsyncWebServer
- git clone https://github.com/marvinroger/async-mqtt-client $LIB_HOME/async-mqtt-client
install:
- cp -r $TRAVIS_BUILD_DIR $ESPS_HOME
- arduino --board esp8266com:esp8266:generic:xtal=160,vt=flash,exception=disabled,ResetMethod=nodemcu,CrystalFreq=26,FlashFreq=40,FlashMode=dio,eesz=1M128,led=2,ip=hb2f,dbg=Disabled,lvl=None____,wipe=none,baud=115200
--pref build.path=$BUILD --save-prefs
before_script:
- cd $ESPS_HOME
- npm install -g gulp-cli
- npm install
script:
- echo "#define ESPS_MODE_PIXEL" > $ESPS_HOME/Mode.h
- arduino --verify $ESPS_HOME/ESPixelStick.ino
- mv $BUILD/ESPixelStick.ino.bin $DIST/firmware/pixel-travis.bin
- echo "#define ESPS_MODE_SERIAL" > $ESPS_HOME/Mode.h
- arduino --verify $ESPS_HOME/ESPixelStick.ino
- mv $BUILD/ESPixelStick.ino.bin $DIST/firmware/serial-travis.bin
- gulp
- gulp md
- gulp travis
- mv $ESPS_HOME/data $DIST/spiffs
- mv $ESPS_HOME/travis/firmware.json $DIST/firmware/firmware.json
- cd $DIST
- zip -r $HOME/$DIST_FILE *
notifications:
email:
on_success: change
on_failure: change
deploy:
provider: releases
api_key:
secure: VJ/XLiQfMz7HOf8iA5p6ctRezOjiQzF69YZTzeji6eSB7kTbqpnLg+qcgaF6wmEchJHfe+7nDFuMClyOgnlF9htrnmumY6ssr/070Ehw276/CylrV8POCfL3WF6LEK/s04I7n6Lq6mDH/jQKDiQ/byp+Ir8BIXgznrJyt1Vsd9V/+w2IPZaJq4K/BbbbByzdhvWF+CF2fZDC6NdYw2ec/vxUFDqE5DnN9t5HvhzNo2/QyWeerWViRXIgSZOq72NxCcurNxPvQhY+H7iRHOJoCd7X4RdvAPNic3Fc+3tEpuMSMDjiIlzTTibATtBS3esl6I2h58nqhqdvjbDC2/pvCXCnWUWBmzB4VR1gKoDq7S5IlWhTJjhi5nOAnMKHdMBkJ7pOPJ1TIzxNq/Fqx/VRbTAZyt0s9MOOv/lfwlPj0WR98Lc0Xy5L0EzcWMZiUfnTcowg9GXLPibGQBF9l4vL8+isfAvgijcjwiPl7dG1dK4NHnggN9168rb6r4eQ5lJrsU6zc/jt6B6q4joD6IyvoNDIUOrJAtL26rzMvOZ1yVTXxynGzoGNmmd60jIcnC93KK7q9crf/4ofFii3PnHpz29asd/2s0VEC43vQWfw267t3iuXyBpiA47r6aggcoyEPk1FA0h2B5LK1uUJ1u+pBvTQsS3JKZpJ+24Z0H1PgfQ=
name: ESPixelStick Firmware (Travis-CI build)
body: This release includes binaries which were automatically built by Travis-CI and should not be considered stable.
prerelease: true
file: $HOME/$DIST_FILE
skip_cleanup: true
on:
repo: forkineye/ESPixelStick
branch: master