shithub: pokecrystal

ref: f59f1bdb88297678d48bcbd01c143994cb307036
dir: /.travis.yml/

View raw version
language: c
os:
  - linux
  - osx
install:
  - |-
    ( cd
        if [ "$TRAVIS_OS_NAME" = osx ]; then
          HOMEBREW_NO_AUTO_UPDATE=1 brew install bison
          export PATH="/usr/local/opt/bison/bin:$PATH"
        fi
        git clone -b v0.5.1 --depth=1 https://github.com/gbdev/rgbds
        sudo make -C rgbds install
        rm -rf rgbds
    )
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 DEBUG=1 -j2 compare
  - check_status
after_success:
  - |-
    if [ "$TRAVIS_BRANCH" = master -a "$TRAVIS_PULL_REQUEST" = false -a "$TRAVIS_OS_NAME" = linux ]; then
      ./.travis/webhook.sh
      if [ -n "$GITHUB_API_KEY" ]; then
        ./.travis/upload_symbols.sh
      fi
    fi