File tree 2 files changed +24
-3
lines changed
2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 1
1
language : cpp
2
2
jobs :
3
3
include :
4
+ - stage : build
5
+ os : linux
6
+ env : SMING_ARCH=Esp8266 SDK_VERSION=3.0.1
4
7
- stage : test
5
8
os : linux
6
9
dist : xenial
9
12
packages :
10
13
- gcc-multilib
11
14
- g++-multilib
15
+ env : SMING_ARCH=Host
12
16
git :
13
17
submodules : false
14
18
script : " .travis/build-and-execute.sh"
Original file line number Diff line number Diff line change @@ -18,6 +18,23 @@ export STRICT=1
18
18
19
19
env
20
20
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
+
You can’t perform that action at this time.
0 commit comments