Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c2efe70
commit defd8ad
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
language: c | ||
install: | ||
- sudo easy_install pypng | ||
- path="$(pwd)"; cd; git clone git://github.com/bentley/rgbds.git && cd rgbds && sudo make install; cd "$path" | ||
before_script: | ||
- |- | ||
function check_status() { | ||
if ! git diff-index --quiet HEAD --; then | ||
echo 'Uncommitted changes detected.'; | ||
return 1; | ||
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; | ||
fi; | ||
} | ||
script: | ||
- make | ||
- verify pokeblue.gbc 50927e843568814f7ed45ec4f944bd8b | ||
- verify pokered.gbc 3d45c1ee9abd5738df46d2bdda8b57dc | ||
- check_status |