Skip to content

Commit ca008bf

Browse files
committed
.travis.yml: Integrate tools/check_code_size.sh.
1 parent f7aa692 commit ca008bf

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎.travis.yml‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ dist: trusty
33
language: c
44
compiler:
55
- gcc
6+
cache:
7+
directories:
8+
- "${HOME}/persist"
69

710
before_script:
811
# Extra CPython versions
@@ -24,7 +27,12 @@ before_script:
2427

2528
script:
2629
- make -C mpy-cross
27-
- make -C minimal test
30+
- make -C minimal build/firmware.bin test
31+
- ls -l minimal/build/firmware.bin
32+
- tools/check_code_size.sh
33+
- mkdir -p ${HOME}/persist
34+
# Save new firmware for reference, but only if building a main branch, not a pull request
35+
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cp minimal/build/firmware.bin ${HOME}/persist/; fi'
2836
- make -C unix deplibs
2937
- make -C unix
3038
- make -C unix nanbox

0 commit comments

Comments
 (0)