Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e04633f

Browse files
committedSep 29, 2019
Add new builder scripts
1 parent 1c77790 commit e04633f

File tree

7 files changed

+467
-71
lines changed

7 files changed

+467
-71
lines changed
 

‎.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,27 +21,27 @@ jobs:
2121
- name: "Build Arduino 0"
2222
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
2323
stage: build
24-
script: $TRAVIS_BUILD_DIR/tools/ci/build-tests.sh 0 4
24+
script: $TRAVIS_BUILD_DIR/tools/ci/on-push.sh 0 4
2525

2626
- name: "Build Arduino 1"
2727
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
2828
stage: build
29-
script: $TRAVIS_BUILD_DIR/tools/ci/build-tests.sh 1 4
29+
script: $TRAVIS_BUILD_DIR/tools/ci/on-push.sh 1 4
3030

3131
- name: "Build Arduino 2"
3232
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
3333
stage: build
34-
script: $TRAVIS_BUILD_DIR/tools/ci/build-tests.sh 2 4
34+
script: $TRAVIS_BUILD_DIR/tools/ci/on-push.sh 2 4
3535

3636
- name: "Build Arduino 3"
3737
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
3838
stage: build
39-
script: $TRAVIS_BUILD_DIR/tools/ci/build-tests.sh 3 4
39+
script: $TRAVIS_BUILD_DIR/tools/ci/on-push.sh 3 4
4040

4141
- name: "Build PlatformIO"
4242
if: tag IS blank AND (type = pull_request OR (type = push AND branch = master))
4343
stage: build
44-
script: $TRAVIS_BUILD_DIR/tools/ci/build-tests.sh 4 4
44+
script: $TRAVIS_BUILD_DIR/tools/ci/on-push.sh 4 4
4545

4646
- name: "Package & Deploy"
4747
if: tag IS present

‎tools/ci/build-tests.sh

Lines changed: 0 additions & 64 deletions
This file was deleted.

‎tools/ci/check-cmakelists.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
set -e
1010

11-
cd "`dirname $0`/.." # cd to arduino-esp32 root
12-
1311
# pull all submodules
1412
git submodule update --init --recursive
1513

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
#!/bin/bash
2+
3+
if [ ! -d "$ARDUINO_USR_PATH/hardware/espressif/esp32" ]; then
4+
echo "Installing ESP32 Arduino Core in '$ARDUINO_USR_PATH/hardware/espressif/esp32'..."
5+
script_init_path="$PWD"
6+
mkdir -p "$ARDUINO_USR_PATH/hardware/espressif" && \
7+
cd "$ARDUINO_USR_PATH/hardware/espressif"
8+
if [ $? -ne 0 ]; then exit 1; fi
9+
10+
if [ "$GITHUB_REPOSITORY" == "espressif/arduino-esp32" ]; then
11+
echo "Linking Core..." && \
12+
ln -s $GITHUB_WORKSPACE esp32
13+
else
14+
echo "Cloning Core Repository..." && \
15+
git clone https://github.com/espressif/arduino-esp32.git esp32 > /dev/null 2>&1
16+
if [ $? -ne 0 ]; then echo "ERROR: GIT clone failed"; exit 1; fi
17+
fi
18+
19+
cd esp32 && \
20+
echo "Updating submodules..." && \
21+
git submodule update --init --recursive > /dev/null 2>&1
22+
if [ $? -ne 0 ]; then echo "ERROR: Submodule update failed"; exit 1; fi
23+
24+
echo "Installing Python Serial..." && \
25+
pip install pyserial > /dev/null
26+
if [ $? -ne 0 ]; then echo "ERROR: Install failed"; exit 1; fi
27+
28+
if [ "$OS_IS_WINDOWS" == "1" ]; then
29+
echo "Installing Python Requests..."
30+
pip install requests > /dev/null
31+
if [ $? -ne 0 ]; then echo "ERROR: Install failed"; exit 1; fi
32+
fi
33+
34+
echo "Downloading the tools and the toolchain..."
35+
cd tools && python get.py > /dev/null
36+
if [ $? -ne 0 ]; then echo "ERROR: Download failed"; exit 1; fi
37+
cd $script_init_path
38+
39+
echo "ESP32 Arduino has been installed in '$ARDUINO_USR_PATH/hardware/espressif/esp32'"
40+
echo ""
41+
fi

‎tools/ci/install-arduino-ide.sh

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
#!/bin/bash
2+
3+
#OSTYPE: 'linux-gnu', ARCH: 'x86_64' => linux64
4+
#OSTYPE: 'msys', ARCH: 'x86_64' => win32
5+
#OSTYPE: 'darwin18', ARCH: 'i386' => macos
6+
7+
OSBITS=`arch`
8+
if [[ "$OSTYPE" == "linux"* ]]; then
9+
export OS_IS_LINUX="1"
10+
ARCHIVE_FORMAT="tar.xz"
11+
if [[ "$OSBITS" == "i686" ]]; then
12+
OS_NAME="linux32"
13+
elif [[ "$OSBITS" == "x86_64" ]]; then
14+
OS_NAME="linux64"
15+
elif [[ "$OSBITS" == "armv7l" ]]; then
16+
OS_NAME="linuxarm"
17+
else
18+
OS_NAME="$OSTYPE-$OSBITS"
19+
echo "Unknown OS '$OS_NAME'"
20+
exit 1
21+
fi
22+
elif [[ "$OSTYPE" == "darwin"* ]]; then
23+
export OS_IS_MACOS="1"
24+
ARCHIVE_FORMAT="zip"
25+
OS_NAME="macosx"
26+
elif [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "win32" ]]; then
27+
export OS_IS_WINDOWS="1"
28+
ARCHIVE_FORMAT="zip"
29+
OS_NAME="windows"
30+
else
31+
OS_NAME="$OSTYPE-$OSBITS"
32+
echo "Unknown OS '$OS_NAME'"
33+
exit 1
34+
fi
35+
export OS_NAME
36+
37+
ARDUINO_BUILD_DIR="$HOME/.arduino/build.tmp"
38+
ARDUINO_CACHE_DIR="$HOME/.arduino/cache.tmp"
39+
40+
if [ "$OS_IS_MACOS" == "1" ]; then
41+
export ARDUINO_IDE_PATH="/Applications/Arduino.app/Contents/Java"
42+
export ARDUINO_USR_PATH="$HOME/Documents/Arduino"
43+
else
44+
export ARDUINO_IDE_PATH="$HOME/arduino_ide"
45+
export ARDUINO_USR_PATH="$HOME/Arduino"
46+
fi
47+
48+
echo "Installing Arduino IDE on $OS_NAME..."
49+
50+
if [ ! -d "$ARDUINO_IDE_PATH" ]; then
51+
echo "Downloading 'arduino-nightly-$OS_NAME.$ARCHIVE_FORMAT' to 'arduino.$ARCHIVE_FORMAT'..."
52+
if [ "$OS_IS_LINUX" == "1" ]; then
53+
wget -O "arduino.$ARCHIVE_FORMAT" "https://www.arduino.cc/download.php?f=/arduino-nightly-$OS_NAME.$ARCHIVE_FORMAT" > /dev/null 2>&1
54+
if [ $? -ne 0 ]; then echo "ERROR: Download failed"; exit 1; fi
55+
echo "Extracting 'arduino.$ARCHIVE_FORMAT'..."
56+
tar xf "arduino.$ARCHIVE_FORMAT" > /dev/null
57+
if [ $? -ne 0 ]; then exit 1; fi
58+
mv arduino-nightly "$ARDUINO_IDE_PATH"
59+
else
60+
curl -o "arduino.$ARCHIVE_FORMAT" -L "https://www.arduino.cc/download.php?f=/arduino-nightly-$OS_NAME.$ARCHIVE_FORMAT" > /dev/null 2>&1
61+
if [ $? -ne 0 ]; then echo "ERROR: Download failed"; exit 1; fi
62+
echo "Extracting 'arduino.$ARCHIVE_FORMAT'..."
63+
unzip "arduino.$ARCHIVE_FORMAT" > /dev/null
64+
if [ $? -ne 0 ]; then exit 1; fi
65+
if [ "$OS_IS_MACOS" == "1" ]; then
66+
mv "Arduino.app" "$HOME/Arduino.app"
67+
else
68+
mv arduino-nightly "$ARDUINO_IDE_PATH"
69+
fi
70+
fi
71+
if [ $? -ne 0 ]; then exit 1; fi
72+
rm -rf "arduino.$ARCHIVE_FORMAT"
73+
fi
74+
75+
mkdir -p "$ARDUINO_USR_PATH/libraries"
76+
mkdir -p "$ARDUINO_USR_PATH/hardware"
77+
78+
function build_sketch(){ # build_sketch <fqbn> <path-to-ino> [extra-options]
79+
local fqbn="$1"
80+
local sketch="$2"
81+
local xtra_opts="$3"
82+
local win_opts=""
83+
if [ "$OS_IS_WINDOWS" == "1" ]; then
84+
local ctags_version=`ls "$ARDUINO_IDE_PATH/tools-builder/ctags/"`
85+
local preprocessor_version=`ls "$ARDUINO_IDE_PATH/tools-builder/arduino-preprocessor/"`
86+
win_opts="-prefs=runtime.tools.ctags.path=$ARDUINO_IDE_PATH/tools-builder/ctags/$ctags_version -prefs=runtime.tools.arduino-preprocessor.path=$ARDUINO_IDE_PATH/tools-builder/arduino-preprocessor/$preprocessor_version"
87+
fi
88+
89+
echo ""
90+
echo "Compiling '"$(basename "$sketch")"'..."
91+
mkdir -p "$ARDUINO_BUILD_DIR"
92+
mkdir -p "$ARDUINO_CACHE_DIR"
93+
$ARDUINO_IDE_PATH/arduino-builder -compile -logger=human -core-api-version=10810 \
94+
-fqbn=$fqbn \
95+
-warnings="all" \
96+
-tools "$ARDUINO_IDE_PATH/tools-builder" \
97+
-tools "$ARDUINO_IDE_PATH/tools" \
98+
-built-in-libraries "$ARDUINO_IDE_PATH/libraries" \
99+
-hardware "$ARDUINO_IDE_PATH/hardware" \
100+
-hardware "$ARDUINO_USR_PATH/hardware" \
101+
-libraries "$ARDUINO_USR_PATH/libraries" \
102+
-build-cache "$ARDUINO_CACHE_DIR" \
103+
-build-path "$ARDUINO_BUILD_DIR" \
104+
$win_opts $xtra_opts "$sketch"
105+
}
106+
107+
function count_sketches() # count_sketches <examples-path>
108+
{
109+
local examples="$1"
110+
local sketches=$(find $examples -name *.ino)
111+
local sketchnum=0
112+
rm -rf sketches.txt
113+
for sketch in $sketches; do
114+
local sketchdir=$(dirname $sketch)
115+
local sketchdirname=$(basename $sketchdir)
116+
local sketchname=$(basename $sketch)
117+
if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then
118+
continue
119+
fi;
120+
if [[ -f "$sketchdir/.test.skip" ]]; then
121+
continue
122+
fi
123+
echo $sketch >> sketches.txt
124+
sketchnum=$(($sketchnum + 1))
125+
done
126+
return $sketchnum
127+
}
128+
129+
function build_sketches() # build_sketches <examples-path> <fqbn> <chunk> <total-chunks> [extra-options]
130+
{
131+
local examples=$1
132+
local fqbn=$2
133+
local chunk_idex=$3
134+
local chunks_num=$4
135+
local xtra_opts=$5
136+
137+
if [ "$chunks_num" -le 0 ]; then
138+
echo "ERROR: Chunks count must be positive number"
139+
return 1
140+
fi
141+
if [ "$chunk_idex" -ge "$chunks_num" ]; then
142+
echo "ERROR: Chunk index must be less than chunks count"
143+
return 1
144+
fi
145+
146+
count_sketches "$examples"
147+
local sketchcount=$?
148+
local sketches=$(cat sketches.txt)
149+
150+
local chunk_size=$(( $sketchcount / $chunks_num ))
151+
local all_chunks=$(( $chunks_num * $chunk_size ))
152+
if [ "$all_chunks" -lt "$sketchcount" ]; then
153+
chunk_size=$(( $chunk_size + 1 ))
154+
fi
155+
156+
local start_index=$(( $chunk_idex * $chunk_size ))
157+
if [ "$sketchcount" -le "$start_index" ]; then
158+
echo "Skipping job"
159+
return 0
160+
fi
161+
162+
local end_index=$(( $(( $chunk_idex + 1 )) * $chunk_size ))
163+
if [ "$end_index" -gt "$sketchcount" ]; then
164+
end_index=$sketchcount
165+
fi
166+
167+
local start_num=$(( $start_index + 1 ))
168+
echo "Found $sketchcount Sketches";
169+
echo "Chunk Count : $chunks_num"
170+
echo "Chunk Size : $chunk_size"
171+
echo "Start Sketch: $start_num"
172+
echo "End Sketch : $end_index"
173+
174+
local sketchnum=0
175+
for sketch in $sketches; do
176+
local sketchdir=$(dirname $sketch)
177+
local sketchdirname=$(basename $sketchdir)
178+
local sketchname=$(basename $sketch)
179+
if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then
180+
#echo "Skipping $sketch, beacause it is not the main sketch file";
181+
continue
182+
fi;
183+
if [[ -f "$sketchdir/.test.skip" ]]; then
184+
#echo "Skipping $sketch marked";
185+
continue
186+
fi
187+
sketchnum=$(($sketchnum + 1))
188+
if [ "$sketchnum" -le "$start_index" ]; then
189+
#echo "Skipping $sketch index low"
190+
continue
191+
fi
192+
if [ "$sketchnum" -gt "$end_index" ]; then
193+
#echo "Skipping $sketch index high"
194+
continue
195+
fi
196+
build_sketch "$fqbn" "$sketch" "$xtra_opts"
197+
local result=$?
198+
if [ $result -ne 0 ]; then
199+
return $result
200+
fi
201+
done
202+
return 0
203+
}
204+
205+
echo "Arduino IDE Installed in '$ARDUINO_IDE_PATH'"
206+
# echo "You can install boards in '$ARDUINO_IDE_PATH/hardware' or in '$ARDUINO_USR_PATH/hardware'"
207+
# echo "User libraries should be installed in '$ARDUINO_USR_PATH/libraries'"
208+
# echo "Then you can call 'build_sketch <fqbn> <path-to-ino> [extra-options]' to build your sketches"
209+
echo ""
210+

‎tools/ci/install-platformio-esp32.sh

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
#!/bin/bash
2+
3+
echo "Installing Python Wheel..."
4+
pip install wheel > /dev/null 2>&1
5+
if [ $? -ne 0 ]; then echo "ERROR: Install failed"; exit 1; fi
6+
7+
echo "Installing PlatformIO..."
8+
pip install -U https://github.com/platformio/platformio/archive/develop.zip > /dev/null 2>&1
9+
if [ $? -ne 0 ]; then echo "ERROR: Install failed"; exit 1; fi
10+
11+
echo "Installing Platform ESP32..."
12+
python -m platformio platform install https://github.com/platformio/platform-espressif32.git#feature/stage > /dev/null 2>&1
13+
if [ $? -ne 0 ]; then echo "ERROR: Install failed"; exit 1; fi
14+
15+
echo "Replacing the framework version..."
16+
if [[ "$OSTYPE" == "darwin"* ]]; then
17+
sed 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' "$HOME/.platformio/platforms/espressif32/platform.json" > "platform.json" && \
18+
mv -f "platform.json" "$HOME/.platformio/platforms/espressif32/platform.json"
19+
else
20+
sed -i 's/https:\/\/github\.com\/espressif\/arduino-esp32\.git/*/' "$HOME/.platformio/platforms/espressif32/platform.json"
21+
fi
22+
if [ $? -ne 0 ]; then echo "ERROR: Replace failed"; exit 1; fi
23+
24+
if [ "$GITHUB_REPOSITORY" == "espressif/arduino-esp32" ]; then
25+
echo "Linking Core..." && \
26+
ln -s $GITHUB_WORKSPACE "$HOME/.platformio/packages/framework-arduinoespressif32"
27+
else
28+
echo "Cloning Core Repository..." && \
29+
git clone https://github.com/espressif/arduino-esp32.git "$HOME/.platformio/packages/framework-arduinoespressif32" > /dev/null 2>&1
30+
if [ $? -ne 0 ]; then echo "ERROR: GIT clone failed"; exit 1; fi
31+
fi
32+
33+
echo "PlatformIO for ESP32 has been installed"
34+
echo ""
35+
36+
37+
function build_pio_sketch(){ # build_pio_sketch <board> <path-to-ino> [extra-options]
38+
local board="$1"
39+
local sketch="$2"
40+
local sketch_dir=$(dirname "$sketch")
41+
echo ""
42+
echo "Compiling '"$(basename "$sketch")"'..."
43+
python -m platformio ci --board "$board" "$sketch_dir" --project-option="board_build.partitions = huge_app.csv"
44+
}
45+
46+
function count_sketches() # count_sketches <examples-path>
47+
{
48+
local examples="$1"
49+
local sketches=$(find $examples -name *.ino)
50+
local sketchnum=0
51+
rm -rf sketches.txt
52+
for sketch in $sketches; do
53+
local sketchdir=$(dirname $sketch)
54+
local sketchdirname=$(basename $sketchdir)
55+
local sketchname=$(basename $sketch)
56+
if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then
57+
continue
58+
fi;
59+
if [[ -f "$sketchdir/.test.skip" ]]; then
60+
continue
61+
fi
62+
echo $sketch >> sketches.txt
63+
sketchnum=$(($sketchnum + 1))
64+
done
65+
return $sketchnum
66+
}
67+
68+
function build_pio_sketches() # build_pio_sketches <examples-path> <board> <chunk> <total-chunks>
69+
{
70+
local examples=$1
71+
local board=$2
72+
local chunk_idex=$3
73+
local chunks_num=$4
74+
local xtra_opts=$5
75+
76+
if [ "$chunks_num" -le 0 ]; then
77+
echo "ERROR: Chunks count must be positive number"
78+
return 1
79+
fi
80+
if [ "$chunk_idex" -ge "$chunks_num" ]; then
81+
echo "ERROR: Chunk index must be less than chunks count"
82+
return 1
83+
fi
84+
85+
count_sketches "$examples"
86+
local sketchcount=$?
87+
local sketches=$(cat sketches.txt)
88+
89+
local chunk_size=$(( $sketchcount / $chunks_num ))
90+
local all_chunks=$(( $chunks_num * $chunk_size ))
91+
if [ "$all_chunks" -lt "$sketchcount" ]; then
92+
chunk_size=$(( $chunk_size + 1 ))
93+
fi
94+
95+
local start_index=$(( $chunk_idex * $chunk_size ))
96+
if [ "$sketchcount" -le "$start_index" ]; then
97+
echo "Skipping job"
98+
return 0
99+
fi
100+
101+
local end_index=$(( $(( $chunk_idex + 1 )) * $chunk_size ))
102+
if [ "$end_index" -gt "$sketchcount" ]; then
103+
end_index=$sketchcount
104+
fi
105+
106+
local start_num=$(( $start_index + 1 ))
107+
echo "Found $sketchcount Sketches";
108+
echo "Chunk Count : $chunks_num"
109+
echo "Chunk Size : $chunk_size"
110+
echo "Start Sketch: $start_num"
111+
echo "End Sketch : $end_index"
112+
113+
local sketchnum=0
114+
for sketch in $sketches; do
115+
local sketchdir=$(dirname $sketch)
116+
local sketchdirname=$(basename $sketchdir)
117+
local sketchname=$(basename $sketch)
118+
if [[ "${sketchdirname}.ino" != "$sketchname" ]]; then
119+
#echo "Skipping $sketch, beacause it is not the main sketch file";
120+
continue
121+
fi;
122+
if [[ -f "$sketchdir/.test.skip" ]]; then
123+
#echo "Skipping $sketch marked";
124+
continue
125+
fi
126+
sketchnum=$(($sketchnum + 1))
127+
if [ "$sketchnum" -le "$start_index" ]; then
128+
#echo "Skipping $sketch index low"
129+
continue
130+
fi
131+
if [ "$sketchnum" -gt "$end_index" ]; then
132+
#echo "Skipping $sketch index high"
133+
continue
134+
fi
135+
build_pio_sketch "$board" "$sketch"
136+
local result=$?
137+
if [ $result -ne 0 ]; then
138+
return $result
139+
fi
140+
done
141+
return 0
142+
}

‎tools/ci/on-push.sh

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
#!/bin/bash
2+
3+
if [ ! -z "$TRAVIS_TAG" ]; then
4+
echo "Skipping Test: Tagged build"
5+
exit 0
6+
fi
7+
8+
#GITHUB_REPOSITORY
9+
#GITHUB_WORKSPACE
10+
11+
if [ ! -z "$GITHUB_WORKSPACE" ]; then
12+
export TRAVIS_BUILD_DIR="$GITHUB_WORKSPACE"
13+
export TRAVIS_REPO_SLUG="$GITHUB_REPOSITORY"
14+
elif [ ! -z "$TRAVIS_BUILD_DIR" ]; then
15+
export GITHUB_WORKSPACE="$TRAVIS_BUILD_DIR"
16+
export GITHUB_REPOSITORY="$TRAVIS_REPO_SLUG"
17+
else
18+
export GITHUB_WORKSPACE="$PWD"
19+
export GITHUB_REPOSITORY="espressif/arduino-esp32"
20+
fi
21+
22+
CHUNK_INDEX=$1
23+
CHUNKS_CNT=$2
24+
BUILD_PIO=0
25+
if [ "$#" -lt 2 ] || [ "$CHUNKS_CNT" -le 0 ]; then
26+
echo "Building all sketches"
27+
CHUNK_INDEX=0
28+
CHUNKS_CNT=1
29+
fi
30+
if [ "$CHUNK_INDEX" -gt "$CHUNKS_CNT" ]; then
31+
CHUNK_INDEX=$CHUNKS_CNT
32+
fi
33+
if [ "$CHUNK_INDEX" -eq "$CHUNKS_CNT" ]; then
34+
BUILD_PIO=1
35+
fi
36+
37+
# CMake Test
38+
if [ "$CHUNK_INDEX" -eq 0 ]; then
39+
bash ./tools/ci/check-cmakelists.sh
40+
if [ $? -ne 0 ]; then exit 1; fi
41+
fi
42+
43+
if [ "$BUILD_PIO" -eq 0 ]; then
44+
# ArduinoIDE Test
45+
# tools/ci/prep-arduino-ide.sh
46+
# if [ $? -ne 0 ]; then exit 1; fi
47+
# tools/ci/test-arduino-ide.sh $CHUNK_INDEX $CHUNKS_CNT
48+
# if [ $? -ne 0 ]; then exit 1; fi
49+
# cat size.log
50+
source ./tools/ci/install-arduino-ide.sh
51+
source ./tools/ci/install-arduino-core-esp32.sh
52+
build_sketches "$ARDUINO_USR_PATH/hardware/espressif/esp32/libraries" "espressif:esp32:esp32:PSRAM=enabled,PartitionScheme=huge_app" "$CHUNK_INDEX" "$CHUNKS_CNT"
53+
else
54+
# PlatformIO Test
55+
# cd tools && python get.py && cd ..
56+
# tools/ci/prep-platformio.sh
57+
# if [ $? -ne 0 ]; then exit 1; fi
58+
# tools/ci/test-platformio.sh
59+
# if [ $? -ne 0 ]; then exit 1; fi
60+
source ./tools/ci/install-platformio-esp32.sh
61+
python -m platformio ci --board esp32dev libraries/WiFi/examples/WiFiClient && \
62+
python -m platformio ci --board esp32dev libraries/WiFiClientSecure/examples/WiFiClientSecure && \
63+
python -m platformio ci --board esp32dev libraries/BluetoothSerial/examples/SerialToSerialBT && \
64+
python -m platformio ci --board esp32dev libraries/BLE/examples/BLE_server && \
65+
python -m platformio ci --board esp32dev libraries/AzureIoT/examples/GetStarted && \
66+
python -m platformio ci --board esp32dev libraries/ESP32/examples/Camera/CameraWebServer --project-option="board_build.partitions = huge_app.csv"
67+
#build_pio_sketches libraries "esp32dev" "$CHUNK_INDEX" "$CHUNKS_CNT"
68+
if [ $? -ne 0 ]; then exit 1; fi
69+
fi

0 commit comments

Comments
 (0)
Please sign in to comment.