mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
Update Travis script to use make compare
and rgbds v0.2.5
This commit is contained in:
parent
2e2a25fec1
commit
d7bd7f4453
28
.travis.yml
28
.travis.yml
|
@ -1,26 +1,24 @@
|
||||||
language: c
|
language: c
|
||||||
install:
|
install:
|
||||||
- sudo easy_install pypng
|
- |-
|
||||||
- path="$(pwd)"; cd; git clone git://github.com/bentley/rgbds.git && cd rgbds && sudo make install; cd "$path"
|
path="$(pwd)"; cd;
|
||||||
|
wget https://github.com/rednex/rgbds/archive/v0.2.5.tar.gz -O rgbds.tar.gz &&
|
||||||
|
tar xf rgbds.tar.gz &&
|
||||||
|
cd rgbds-0.2.5 &&
|
||||||
|
sudo make install &&
|
||||||
|
cd - &&
|
||||||
|
rm -rf rgbds &&
|
||||||
|
cd "$path"
|
||||||
before_script:
|
before_script:
|
||||||
- |-
|
- |-
|
||||||
function check_status() {
|
function check_status() {
|
||||||
if ! git diff-index --quiet HEAD --; then
|
if ! git diff-index --quiet --ignore-submodules=all HEAD --; then
|
||||||
echo 'Uncommitted changes detected.';
|
echo 'Uncommitted changes detected:';
|
||||||
return 1;
|
git diff-index HEAD --;
|
||||||
fi;
|
|
||||||
}
|
|
||||||
- |-
|
|
||||||
function verify() {
|
|
||||||
actual="$(md5sum "${1}" | cut -c 1-32)";
|
|
||||||
expected="${2}";
|
|
||||||
if [ "${actual}" != "${expected}" ]; then
|
|
||||||
echo "md5(${1}): expected ${2}, but got ${actual} instead.";
|
|
||||||
return 1;
|
return 1;
|
||||||
fi;
|
fi;
|
||||||
}
|
}
|
||||||
script:
|
script:
|
||||||
- make
|
- make
|
||||||
- verify pokeblue.gbc 50927e843568814f7ed45ec4f944bd8b
|
- make compare
|
||||||
- verify pokered.gbc 3d45c1ee9abd5738df46d2bdda8b57dc
|
|
||||||
- check_status
|
- check_status
|
||||||
|
|
Loading…
Reference in a new issue