From ca008bfd2ddbef0fc28bbea56bb8317902599495 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 25 Oct 2016 11:07:29 +0300 Subject: [PATCH] .travis.yml: Integrate tools/check_code_size.sh. --- .travis.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 255f28af2f..152de7376a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,9 @@ dist: trusty language: c compiler: - gcc +cache: + directories: + - "${HOME}/persist" before_script: # Extra CPython versions @@ -24,7 +27,12 @@ before_script: script: - make -C mpy-cross - - make -C minimal test + - make -C minimal build/firmware.bin test + - ls -l minimal/build/firmware.bin + - tools/check_code_size.sh + - mkdir -p ${HOME}/persist + # Save new firmware for reference, but only if building a main branch, not a pull request + - 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cp minimal/build/firmware.bin ${HOME}/persist/; fi' - make -C unix deplibs - make -C unix - make -C unix nanbox