.travis.yml 545 B

12345678910111213141516171819202122232425
  1. language: c
  2. install:
  3. - |-
  4. path="$(pwd)"; cd;
  5. wget https://github.com/rednex/rgbds/archive/v0.3.3.tar.gz -O rgbds.tar.gz &&
  6. tar xf rgbds.tar.gz &&
  7. cd rgbds-0.3.3 &&
  8. sudo make install &&
  9. cd - &&
  10. rm -rf rgbds &&
  11. cd "$path"
  12. before_script:
  13. - |-
  14. function check_status() {
  15. if ! git diff-index --quiet --ignore-submodules=all HEAD --; then
  16. echo 'Uncommitted changes detected:';
  17. git diff-index HEAD --;
  18. return 1;
  19. fi;
  20. }
  21. script:
  22. - make -j2
  23. - make compare
  24. - check_status