diff options
author | Sanqui <gsanky@gmail.com> | 2017-03-20 19:45:41 +0100 |
---|---|---|
committer | Sanqui <gsanky@gmail.com> | 2017-03-20 19:45:41 +0100 |
commit | 2e2a25fec13fc66a25f4187590d95c326db988f3 (patch) | |
tree | ae88ee4d129eab0d58ab69a73e9c3c36e64fc711 | |
parent | caa146a298f862771fc1a4dc7a62885c3490bfea (diff) | |
parent | defd8ad8c78c7ecd591a4f30146629aa50ac64d3 (diff) |
Merge branch 'ci' of https://github.com/PoCs/pokered into ci
-rw-r--r-- | .travis.yml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..3fe46c2b --- /dev/null +++ b/.travis.yml @@ -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 |