machine:
   java:
       version: oraclejdk8
test:
    override:
        - ./setup.sh
    post:
        - cp -r target/glowstone*.jar $CIRCLE_ARTIFACTS/
        - mkdir -p $CIRCLE_TEST_REPORTS/junit/
        - find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;

machine:
   java:
       version: oraclejdk8
dependencies:
    pre:
        - git config --global user.email "momothereal"
        - git config --global user.name "momothereal.mc@gmail.com"
        - git clone --recursive https://github.com/GlowstoneMC/Glowkit.git glowkit
        - (cd glowkit && chmod +x applyPatches.sh && ./applyPatches.sh)
        - (cd glowkit/Glowkit-Patched && mvn package install)
test:
    override:
        - ./setup.sh
    post:
        - cp -r target/glowstone*.jar $CIRCLE_ARTIFACTS/
        - mkdir -p $CIRCLE_TEST_REPORTS/junit/
        - find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;

Build Glowkit before Glowstone in CircleCI.
Build Glowkit before Glowstone in CircleCI.
