.travis.yml 680 B

123456789101112131415161718
  1. script:
  2. # make sure example can at least compile
  3. - sed -n '/``` c/,/```/{/```/d; p;}' README.md > test.c &&
  4. CFLAGS='
  5. -Duser_provided_block_device_read=NULL
  6. -Duser_provided_block_device_prog=NULL
  7. -Duser_provided_block_device_erase=NULL
  8. -Duser_provided_block_device_sync=NULL
  9. -include stdio.h -Werror' make all size
  10. # run tests
  11. - make test
  12. # run tests with a few different configurations
  13. - CFLAGS="-DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1" make test
  14. - CFLAGS="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512" make test
  15. - CFLAGS="-DLFS_BLOCK_COUNT=1023" make test
  16. - CFLAGS="-DLFS_LOOKAHEAD=2047" make test