---

machine:
  environment:
    TERM: dumb

checkout:
  post:
    - "if [ -e .git/shallow ]; then git fetch --unshallow; fi"
    - git fetch --tags

dependencies:
  override:
    - ./gradlew --parallel assemble

test:
  override:
    - ./gradlew --stacktrace --parallel test

---

machine:
  environment:
    TERM: dumb

checkout:
  override:
    - git clone https://github.com/DMDirc/Meta.git DMDirc
    - git submodule update --init --remote
    - cd DMDirc/client
    - git fetch origin $CIRCLE_BRANCH:circleci
    - git fetch --tags
    - git checkout circleci
  post:
    - git fetch --tags

dependencies:
  override:
    - ./gradlew --parallel client:dependencies plugins:dependencies

test:
  override:
    - ./gradlew --stacktrace --parallel client:test

Make CircleCI check out Meta.
Make CircleCI check out Meta.

This checks out meta, updates the client repo to the right branch
(to cope with PRs, rather than master builds), then runs the client
tests.

DMDirc/Infrastructure#62
