Skip to content

Commit 3d90112

Browse files
committed
Add ESP8266 build to CI tests
1 parent 5b1578c commit 3d90112

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
language: cpp
22
jobs:
33
include:
4+
- stage: build
5+
os: linux
6+
env: SMING_ARCH=Esp8266 SDK_VERSION=3.0.1
47
- stage: test
58
os: linux
69
dist: xenial
@@ -9,6 +12,7 @@ jobs:
912
packages:
1013
- gcc-multilib
1114
- g++-multilib
15+
env: SMING_ARCH=Host
1216
git:
1317
submodules: false
1418
script: ".travis/build-and-execute.sh"

.travis/build-and-execute.sh

+20-3
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,23 @@ export STRICT=1
1818

1919
env
2020

21-
# Build and run our tests
22-
cd test
23-
$MAKE_PARALLEL execute SMING_ARCH=Host
21+
if [ "$SMING_ARCH" == "Esp8266" ]; then
22+
export ESP_HOME=$TRAVIS_BUILD_DIR/opt/esp-alt-sdk
23+
mkdir -p $ESP_HOME
24+
25+
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
26+
wget --no-verbose https://github.com/nodemcu/nodemcu-firmware/raw/2d958750b56fc60297f564b4ec303e47928b5927/tools/esp-open-sdk.tar.xz
27+
tar -Jxf esp-open-sdk.tar.xz; ln -s $(pwd)/esp-open-sdk/xtensa-lx106-elf $ESP_HOME/.
28+
fi
29+
30+
export PATH=$PATH:$ESP_HOME/xtensa-lx106-elf/bin:$ESP_HOME/utils/
31+
32+
cd test
33+
$MAKE_PARALLEL
34+
35+
else
36+
# Build and run our tests
37+
cd test
38+
$MAKE_PARALLEL execute SMING_ARCH=Host
39+
fi
40+

0 commit comments

Comments
 (0)