diff --git a/.travis.yml b/.travis.yml index ea38a10b3b..4101a450d1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,4 +11,5 @@ script: - sudo unlink /usr/bin/gcc && sudo ln -s /usr/bin/gcc-5 /usr/bin/gcc - export VROOT=$(pwd) - cd ./compiler - - make \ No newline at end of file + - make + - make test diff --git a/compiler/Makefile b/compiler/Makefile index 727cf0b292..b3c0b61ebf 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -7,5 +7,8 @@ v: v.c v.c: wget https://raw.githubusercontent.com/vlang/vc/master/v.c +test: + find .. -name '*_test.v' | xargs v {} + clean: -rm vc v.c