forked from lyusupov/SoftRF
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (52 loc) · 2.41 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
language: c
env:
global:
- IDE_VERSION=1.8.5
matrix:
- BOARD=esp8266:esp8266:nodemcuv2:CpuFrequency=80,FlashSize=4M3M
- BOARD=espressif:esp32:esp32:PartitionScheme=min_spiffs,FlashMode=dio,FlashFreq=80,FlashSize=4M,DebugLevel=none
before_install:
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16"
- sleep 3
- export DISPLAY=:1.0
- wget http://downloads.arduino.cc/arduino-$IDE_VERSION-linux64.tar.xz
- tar xf arduino-$IDE_VERSION-linux64.tar.xz
- rm arduino-$IDE_VERSION-linux64.tar.xz
- sudo mv arduino-$IDE_VERSION /usr/local/share/arduino
- sudo ln -s /usr/local/share/arduino/arduino /usr/local/bin/arduino
install:
- mkdir $HOME/Arduino
- ln -s $PWD/software/firmware/source/libraries $HOME/Arduino/libraries
- if [[ "$BOARD" =~ "esp8266:esp8266:" ]]; then
arduino --pref "boardsmanager.additional.urls=http://arduino.esp8266.com/stable/package_esp8266com_index.json" --save-prefs ;
arduino --install-boards esp8266:esp8266 ;
arduino --board $BOARD --save-prefs ;
arduino --pref "compiler.warning_level=all" --save-prefs ;
arduino --pref "custom_LwIPVariant=nodemcuv2_Prebuilt" --save-prefs ;
fi
- if [[ "$BOARD" =~ "espressif:esp32:" ]]; then
mkdir -p $HOME/Arduino/hardware/espressif;
cd $HOME/Arduino/hardware/espressif ;
git clone https://github.com/espressif/arduino-esp32.git esp32 ;
cd esp32 ;
git submodule update --init --recursive ;
cd tools ;
python get.py ;
cd $HOME/Arduino/hardware/espressif/esp32/libraries ;
git clone https://github.com/bbx10/WebServer_tng.git WebServer ;
cd $HOME/Arduino/hardware/espressif/esp32/tools/sdk/lib ;
rm -f libbt.a ;
cp $TRAVIS_BUILD_DIR/software/firmware/binaries/ESP32/misc/libbt.a . ;
rm -f libesp32.a ;
cp $TRAVIS_BUILD_DIR/software/firmware/binaries/ESP32/misc/libesp32.a.80MHz libesp32.a ;
cd $HOME/Arduino/hardware/espressif/esp32 ;
sed -i 's/esp32.upload.maximum_size=1310720/esp32.upload.maximum_size=1966080/g' boards.txt ;
sed -i 's/esp32.build.f_cpu=240000000L/esp32.build.f_cpu=80000000L/g' boards.txt ;
cd $TRAVIS_BUILD_DIR ;
fi
script:
- arduino --verify --verbose-build --board $BOARD $PWD/software/firmware/source/SoftRF/SoftRF.ino
notifications:
email:
on_success: change
on_failure: change