-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
31 lines (31 loc) · 1.37 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
language: generic
env:
global:
- CLI_VERSION=latest
before_install:
- wget http://downloads.arduino.cc/arduino-cli/arduino-cli-$CLI_VERSION-linux64.tar.bz2
- tar xf arduino-cli-$CLI_VERSION-linux64.tar.bz2
- mv arduino-cli-*-linux64 $HOME/bin/arduino-cli
- mkdir -p $HOME/bin
- arduino-cli config init
- mv $PWD/travis/.cli-config.yml $HOME/.arduino15/arduino-cli.yaml
- arduino-cli config dump
- export PATH=$PATH:$HOME/bin
- arduino-cli core update-index
- arduino-cli core install arduino:avr
- arduino-cli core install esp8266:esp8266
- arduino-cli core install esp32:esp32
- buildExampleSketchAvr() { arduino-cli compile --warnings all --fqbn arduino:avr:uno $PWD/examples/$1; }
- buildExampleSketchEsp8266() { arduino-cli compile --warnings all --fqbn esp8266:esp8266:generic $PWD/examples/$1; }
- buildExampleSketchEsp32() { arduino-cli compile --warnings all --fqbn esp32:esp32:esp32 $PWD/examples/$1; }
- buildExampleSketch() { buildExampleSketchAvr $1; buildExampleSketchEsp8266 $1; buildExampleSketchEsp32 $1;}
install:
- mkdir -p $HOME/Arduino/libraries
- ln -s $PWD $HOME/Arduino/libraries/.
script:
- buildExampleSketch 00_Blink
- buildExampleSketch 01_BasicIO
- buildExampleSketch 02_TactileButton
- buildExampleSketch 03_CustomComponent
- buildExampleSketch Components/Timer/OnInterval
- buildExampleSketch Components/Timer/SetTimeout