From 9e9480f63854e1ae0605420648982b484998dfe3 Mon Sep 17 00:00:00 2001 From: S-YOU Date: Wed, 26 Jun 2019 07:58:17 +0900 Subject: [PATCH] run tests in travis --- .travis.yml | 3 ++- compiler/Makefile | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) 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