@@ -126,37 +126,6 @@ function install_ide()
126
126
export PATH=" $ide_path :$core_path /tools/xtensa-lx106-elf/bin:$PATH "
127
127
}
128
128
129
- function build_docs()
130
- {
131
- SPHINXOPTS=" -W" make html
132
- }
133
-
134
- function run_host_tests()
135
- {
136
- pushd host
137
- make CI
138
- make clean-objects
139
- popd
140
- }
141
-
142
- function build_package()
143
- {
144
- export PKG_URL=https://github.com/esp8266/Arduino/releases/download/$TRAVIS_TAG /esp8266-$TRAVIS_TAG .zip
145
- export DOC_URL=https://arduino-esp8266.readthedocs.io/en/$TRAVIS_TAG /
146
- ./build_boards_manager_package.sh
147
- }
148
-
149
- function build_boards()
150
- {
151
- echo -e " travis_fold:start:build_boards"
152
- tools/boards.txt.py --boardsgen --ldgen --packagegen --docgen
153
- git diff --exit-code -- boards.txt \
154
- doc/boards.rst \
155
- tools/sdk/ld/
156
- git diff --exit-code -w -- package/package_esp8266com_index.template.json
157
- echo -e " travis_fold:end:build_boards"
158
- }
159
-
160
129
function install_platformio()
161
130
{
162
131
pip install --user -U https://github.com/platformio/platformio/archive/develop.zip
@@ -239,22 +208,6 @@ function build_sketches_with_arduino()
239
208
echo -e " travis_fold:end:size_report"
240
209
}
241
210
242
- function check_examples_style()
243
- {
244
- echo -e " travis_fold:start:check_examples_style"
245
-
246
- find $TRAVIS_BUILD_DIR /libraries -name ' *.ino' -exec \
247
- astyle \
248
- --suffix=none \
249
- --options=$TRAVIS_BUILD_DIR /tests/examples_style.conf {} \;
250
-
251
- # we have no control over submodules
252
- git submodule foreach --recursive git reset --hard
253
-
254
- git diff --exit-code -- $TRAVIS_BUILD_DIR /libraries
255
-
256
- echo -e " travis_fold:end:check_examples_style"
257
- }
258
211
259
212
set -e
260
213
@@ -293,25 +246,8 @@ elif [ "$BUILD_TYPE" = "platformio_odd" ]; then
293
246
# PlatformIO
294
247
install_platformio
295
248
build_sketches_with_platformio $TRAVIS_BUILD_DIR /libraries " --board nodemcuv2 --verbose" 2 1
296
- elif [ " $BUILD_TYPE " = " docs" ]; then
297
- # Build documentation using Sphinx
298
- cd $TRAVIS_BUILD_DIR /doc
299
- build_docs
300
- elif [ " $BUILD_TYPE " = " package" ]; then
301
- # Check that boards.txt, ld scripts, package JSON template, and boards.rst are up to date
302
- build_boards
303
- # Build release package
304
- cd $TRAVIS_BUILD_DIR /package
305
- build_package
306
- elif [ " $BUILD_TYPE " = " host_tests" ]; then
307
- # Run host side tests
308
- cd $TRAVIS_BUILD_DIR /tests
309
- run_host_tests
310
- elif [ " $BUILD_TYPE " = " style_check" ]; then
311
- # Check code style
312
- check_examples_style
313
249
else
314
- echo " BUILD_TYPE not set"
250
+ echo " BUILD_TYPE not set or invalid "
315
251
exit 1
316
252
fi
317
253
0 commit comments