---

machine:
  environment:
    TERM: dumb

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

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

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


---

machine:
  environment:
    TERM: dumb

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

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

test:
  override:
    - ./gradlew --stacktrace --parallel client:jar client:test:
        pwd:
          ../meta

general:
  artifacts:
    - ../meta/client/build/libs/

Build jar and set as an artifact.
Build jar and set as an artifact.
