mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-13 00:34:48 +13:00
Merge pull request #148 from Sanqui/ci
Add Travis continuous integration
This commit is contained in:
commit
274809b723
24
.travis.yml
Normal file
24
.travis.yml
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
language: c
|
||||||
|
install:
|
||||||
|
- |-
|
||||||
|
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:
|
||||||
|
- |-
|
||||||
|
function check_status() {
|
||||||
|
if ! git diff-index --quiet --ignore-submodules=all HEAD --; then
|
||||||
|
echo 'Uncommitted changes detected:';
|
||||||
|
git diff-index HEAD --;
|
||||||
|
return 1;
|
||||||
|
fi;
|
||||||
|
}
|
||||||
|
script:
|
||||||
|
- make
|
||||||
|
- make compare
|
||||||
|
- check_status
|
||||||
Loading…
Reference in a new issue