Skip to content

Commit d06549e

Browse files
committed
Use folds to improve readability of Travis logs
1 parent 324c41f commit d06549e

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.travis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ addons:
1313
script:
1414
- set -e
1515
- export CXX="g++-4.8" CC="gcc-4.8" GCOV="gcov-4.8"
16+
- echo -e "travis_fold:start:host_tests"
1617
- pushd $TRAVIS_BUILD_DIR/tests/host
1718
- make
1819
- make clean-objects
20+
- echo -e "travis_fold:end:host_tests"
21+
- echo -e "travis_fold:start:sketch_test_env_prepare"
1922
- popd
2023
- wget -O arduino.tar.xz https://www.arduino.cc/download.php?f=/arduino-nightly-linux64.tar.xz
2124
- tar xf arduino.tar.xz
@@ -31,7 +34,13 @@ script:
3134
- cd $TRAVIS_BUILD_DIR
3235
- source tests/common.sh
3336
- install_libraries
37+
- echo -e "travis_fold:end:sketch_test_env_prepare"
38+
- echo -e "travis_fold:start:sketch_test"
3439
- build_sketches $HOME/arduino_ide $TRAVIS_BUILD_DIR "-l $HOME/Arduino/libraries"
40+
- echo -e "travis_fold:end:sketch_test"
41+
- echo -e "travis_fold:start:size_report"
42+
- cat size.log
43+
- echo -e "travis_fold:end:size_report"
3544

3645
after_success:
3746
- pushd $TRAVIS_BUILD_DIR/tests/host

tests/common.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ function build_sketches()
7272
print_size_info $build_dir/*.elf >>size.log
7373
done
7474
set -e
75-
echo -e "\n ------------ Size report ------------ \n"
76-
cat size.log
77-
echo -e "\n ------------------------------------- \n"
7875
}
7976

8077
function install_libraries()

0 commit comments

Comments
 (0)