Add external projects to Travis CI jobs

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 <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2018-01-27 11:14:10 +00:00
parent abeca2d305
commit f8f67fcbce
3 changed files with 40 additions and 6 deletions

View File

@@ -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

36
test/run-tests.sh Executable file
View File

@@ -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