From 2ee269abdb9b37c72c49ea91d2ea36f9500545e1 Mon Sep 17 00:00:00 2001 From: Anton Blanchard Date: Tue, 27 Aug 2019 10:40:43 +1000 Subject: [PATCH] Add an initial travis.yml Signed-off-by: Anton Blanchard --- .travis.yml | 8 ++++++++ Makefile | 6 ++++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..8a59d1b --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: minimal +install: skip + +services: docker + +before_install: docker pull ghdl/vunit:gcc + +script: docker run --rm -t -v `pwd`:/build -w /build ghdl/vunit:gcc bash -c "apt install -y python3-pexpect && make GNATMAKE='gnatmake -j'$(nproc) && make -j$(nproc) check_light" diff --git a/Makefile b/Makefile index 6daa193..fc54896 100644 --- a/Makefile +++ b/Makefile @@ -61,13 +61,15 @@ tests = $(sort $(patsubst tests/%.out,%,$(wildcard tests/*.out))) check: $(tests) test_micropython test_micropython_long +check_light: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 test_micropython test_micropython_long + $(tests): core_tb @./scripts/run_test.sh $@ -test_micropython: +test_micropython: core_tb @./scripts/test_micropython.py -test_micropython_long: +test_micropython_long: core_tb @./scripts/test_micropython_long.py clean: