From f8f67fcbceea754bba2268be11da9b7aba7a285a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Sat, 27 Jan 2018 11:14:10 +0000 Subject: [PATCH] Add external projects to Travis CI jobs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Small tests like the ones included in this repository are good to test individual features, but it is also a good idea to test some real projects. Signed-off-by: Antonio Niño Díaz --- .travis.yml | 8 +++----- test/asm/bank-noexist.asm | 2 +- test/run-tests.sh | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 6 deletions(-) create mode 100755 test/run-tests.sh diff --git a/.travis.yml b/.travis.yml index 171eea61..f4d9502b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,14 +2,12 @@ language: c sudo: required install: - ./.travis-deps.sh + - make + - sudo make install os: - linux compiler: - clang - gcc script: - - make - - sudo make install -after_success: - - pushd test/asm/ && ./test.sh && popd - - pushd test/link/ && ./test.sh && popd + - ./test/run-tests.sh diff --git a/test/asm/bank-noexist.asm b/test/asm/bank-noexist.asm index e8826ac6..b32be20b 100644 --- a/test/asm/bank-noexist.asm +++ b/test/asm/bank-noexist.asm @@ -1,2 +1,2 @@ SECTION "sec", ROM0 - db BANK(noexist) + db BANK(noexist) diff --git a/test/run-tests.sh b/test/run-tests.sh new file mode 100755 index 00000000..22371131 --- /dev/null +++ b/test/run-tests.sh @@ -0,0 +1,36 @@ +#!/bin/bash + +# Return failure as soon as a command fails to execute + +set -e + +cd test + +# Tests included with the repository + +pushd asm +./test.sh +popd + +pushd link +./test.sh +popd + +# Test some significant external projects that use RGBDS + +git clone https://github.com/pret/pokecrystal.git --depth=1 +pushd pokecrystal +make -j +make compare +popd + +git clone --recursive https://github.com/pret/pokered.git --depth=1 +pushd pokered +make -j +make compare +popd + +git clone https://github.com/AntonioND/ucity.git --depth=1 +pushd ucity +make -j +popd