Skip to content

Commit 44d22f3

Browse files
committed
Merge pull request #1823 from esp8266/travis-build-fix
Clean build directory after each sketch
2 parents 8a3386b + 5188031 commit 44d22f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/common.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ function build_sketches()
4040
local build_arg=$3
4141
local build_dir=build.tmp
4242
mkdir -p $build_dir
43-
rm -rf $build_dir/*
4443
local build_cmd="python tools/build.py -b generic -v -k -p $PWD/$build_dir $build_arg "
4544
local sketches=$(find $srcpath -name *.ino)
4645
print_size_info >size.log
4746
export ARDUINO_IDE_PATH=$arduino
4847
for sketch in $sketches; do
48+
rm -rf $build_dir/*
4949
local sketchdir=$(dirname $sketch)
5050
local sketchdirname=$(basename $sketchdir)
5151
local sketchname=$(basename $sketch)

0 commit comments

Comments
 (0)