-
Notifications
You must be signed in to change notification settings - Fork 7
/
.travis.yml.arduino
74 lines (74 loc) · 5.68 KB
/
.travis.yml.arduino
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
70
71
72
73
74
sudo: false
language: bash
os:
- linux
# addons:
# ssh_known_hosts:
# - www.amelvin.co.uk:4022
env:
global:
- BUILD_FOLDER=$TRAVIS_BUILD_DIR/build.tmp
- SKETCH_LOCATION="$TRAVIS_BUILD_DIR"
- LIBRARIES_LOCATION="-l $HOME/Arduino/libraries"
- BOARD_TYPE="-b generic"
- FLASH_SIZE="-s 4M3M"
- CPU_SPEED="-f 160"
- OUTPUT_FILE="-o $TRAVIS_BUILD_DIR/firmware.bin"
- DEBUG_PORT="--debug_port Serial"
- secure: OE22IeddFH05vcq7WDbApyeCmIBiufVhB9b4SYnOJg9/Zno0Ys0py8z9wqipJe6xjmENEJ8sAVTQirCIRarzcC2OdFHohOmf/n8zkXTv3YBx15iNKapd1XcJv0VBZMKVi3QWgA2OmjtPKYy9P1cWrxAIuHaDr+gPOR2cnE+Vti1j7yQ6brtpi4MsRTZqvYee05ugu/qejBlkc5ZPeQOrnp3GO6ZB/h+vw2qnKi8flTl3wDgqOCul6hhcOZ7vpRLEAEP5fzUe4EgmgvOXr52+XbOwFpN5yA/6fNR5SpF43PkhCOvVc+ppReZE9d7Wi2Ol4WNl0m4lE7No4Idc7K0Z1PsDyeIrl/DQ2i6nYJhilQLVkC/gBPps8gOPVB9GEW//4AScpHDZT+KAynB+Z1vkwMv9DHSE4fOf14O/ZSWh9Hxmk/gwFN5v4+M8jh1K5nXL2KQ8PFLCV24tu6lsbPV70h9iOoyJ3/lL3og5Mr5rwQlhwe6i25OjwMKb6tRE0KSX1RNBQERrI+7YaZxmoK8kKR55Lb94h1La5WvdJo4N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al3omLN87n3bjHsN/l141xvLLi6ht694RBgKOMoc=
before_install:
- ssh-keyscan -t ssh-dss,rsa,ecdsa -p 4022 -H $DEPLOY_DEST 2>&1 | tee -a $HOME/.ssh/known_hosts
- openssl aes-256-cbc -K $encrypted_0c5054dac5bc_key -iv $encrypted_0c5054dac5bc_iv
-in travisgit.enc -out /tmp/travis.key -d
- chmod 600 /tmp/travis.key
install:
- wget -O arduino.tar.xz https://www.arduino.cc/download.php?f=/arduino-nightly-linux64.tar.xz
- tar xf arduino.tar.xz
- mv arduino-nightly $HOME/arduino_ide
- cd $HOME/arduino_ide/hardware
- mkdir esp8266com
- cd esp8266com
- git clone https://github.com/sticilface/arduino-esp8266 esp8266
- cd esp8266/tools
- python get.py
- export PATH="$HOME/arduino_ide:$HOME/arduino_ide/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin:$PATH"
- which arduino
- which xtensa-lx106-elf-size
- cd $TRAVIS_BUILD_DIR
- source $HOME/arduino_ide/hardware/esp8266com/esp8266/tests/common.sh
- git clone https://github.com/sticilface/mypythondeployscript $HOME/scripts
- mkdir -p $HOME/Arduino/libraries
- cp -r $TRAVIS_BUILD_DIR $HOME/Arduino/libraries/Melvanimate
- git clone https://github.com/bblanchon/ArduinoJson $HOME/Arduino/libraries/ArduinoJson
- git clone https://github.com/me-no-dev/ESPAsyncTCP $HOME/Arduino/libraries/ESPAsyncTCP
- git clone https://github.com/me-no-dev/ESPAsyncWebServer $HOME/Arduino/libraries/ESPAsyncWebServer
- git clone https://github.com/Makuna/NeoPixelBus $HOME/Arduino/libraries/NeoPixelBus
- git clone https://github.com/knolleary/pubsubclient $HOME/Arduino/libraries/pubsubclient
- git clone https://github.com/adafruit/Adafruit-GFX-Library $HOME/Arduino/libraries/Adafruit-GFX-Library
- git clone -b upgrade-gui https://github.com/sticilface/ESPmanager $HOME/Arduino/libraries/ESPmanager
- git clone -b async https://github.com/sticilface/Melvanimate $HOME/Arduino/libraries/Melvanimate
- cd $TRAVIS_BUILD_DIR
script:
- echo -e "travis_fold:end:sketch_test_env_prepare"
- echo -e "travis_fold:start:sketch_test"
- build_sketches $HOME/arduino_ide $SKETCH_LOCATION $BUILD_FOLDER "$LIBRARIES_LOCATION
$OUTPUT_FILE $BOARD_TYPE $FLASH_SIZE $CPU_SPEED $DEBUG_PORT $DEBUG_LEVEL"
- echo -e "travis_fold:end:sketch_test"
after_success:
- echo -e "travis_fold:start:size_report"
- cat size.log
- echo -e "travis_fold:end:size_report"
- ls -la $TRAVIS_BUILD_DIR/*.bin
- mkdir /tmp/package
- cp $TRAVIS_BUILD_DIR/firmware.bin "/tmp/package/firmware.bin"
- cp -r "$SKETCH_LOCATION/data" "/tmp/package/"
- ls /tmp/package/
deploy:
- provider: script
skip_cleanup: true
on:
all_branches: true
script: /bin/sh $TRAVIS_BUILD_DIR/travis/deploy.sh latest