Skip to content

Commit

Permalink
Use folds to improve readability of Travis logs
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Mar 12, 2016
1 parent 324c41f commit d06549e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@ addons:
script:
- set -e
- export CXX="g++-4.8" CC="gcc-4.8" GCOV="gcov-4.8"
- echo -e "travis_fold:start:host_tests"
- pushd $TRAVIS_BUILD_DIR/tests/host
- make
- make clean-objects
- echo -e "travis_fold:end:host_tests"
- echo -e "travis_fold:start:sketch_test_env_prepare"
- popd
- wget -O arduino.tar.xz https://www.arduino.cc/download.php?f=/arduino-nightly-linux64.tar.xz
- tar xf arduino.tar.xz
Expand All @@ -31,7 +34,13 @@ script:
- cd $TRAVIS_BUILD_DIR
- source tests/common.sh
- install_libraries
- echo -e "travis_fold:end:sketch_test_env_prepare"
- echo -e "travis_fold:start:sketch_test"
- build_sketches $HOME/arduino_ide $TRAVIS_BUILD_DIR "-l $HOME/Arduino/libraries"
- echo -e "travis_fold:end:sketch_test"
- echo -e "travis_fold:start:size_report"
- cat size.log
- echo -e "travis_fold:end:size_report"

after_success:
- pushd $TRAVIS_BUILD_DIR/tests/host
Expand Down
3 changes: 0 additions & 3 deletions tests/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ function build_sketches()
print_size_info $build_dir/*.elf >>size.log
done
set -e
echo -e "\n ------------ Size report ------------ \n"
cat size.log
echo -e "\n ------------------------------------- \n"
}

function install_libraries()
Expand Down

0 comments on commit d06549e

Please sign in to comment.