Add an initial travis.yml
authorAnton Blanchard <anton@linux.ibm.com>
Tue, 27 Aug 2019 00:40:43 +0000 (10:40 +1000)
committerAnton Blanchard <anton@ozlabs.org>
Wed, 28 Aug 2019 12:33:53 +0000 (22:33 +1000)
Signed-off-by: Anton Blanchard <anton@linux.ibm.com>
.travis.yml [new file with mode: 0644]
Makefile

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..8a59d1b
--- /dev/null
@@ -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"
index 6daa193b56bf5941332d0c61ea8e6a928bd314d7..fc548969272210ef901304036cf9fe041c7e23f4 100644 (file)
--- 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: