diff options
author | Christopher Haster <chaster@utexas.edu> | 2017-07-16 20:42:17 +0300 |
---|---|---|
committer | Christopher Haster <chaster@utexas.edu> | 2017-07-16 20:45:41 +0300 |
commit | 47db7a737060045f837408ae69736cc58dd4449c (patch) | |
tree | 630c4e1b18899e1343f89def988f649c1179a444 /.travis.yml | |
parent | 476915fee646f6e082f5141ebbc377ae816ef79d (diff) |
Added sanity check for compiling example
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml index 0936b29..00f5665 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,4 +1,14 @@ script: + # make sure example can at least compile + - sed -n '/``` c/,/```/{/```/d; p;}' README.md > test.c && + CFLAGS=' + -Duser_provided_block_device_read=NULL + -Duser_provided_block_device_prog=NULL + -Duser_provided_block_device_erase=NULL + -Duser_provided_block_device_sync=NULL + -include stdio.h -Werror' make + + # run tests - CFLAGS="-DLFS_READ_SIZE=16 -DLFS_PROG_SIZE=16" make test - CFLAGS="-DLFS_READ_SIZE=1 -DLFS_PROG_SIZE=1" make test - CFLAGS="-DLFS_READ_SIZE=512 -DLFS_PROG_SIZE=512" make test |