machine:
  java:
    version: oraclejdk8
  services:
    - docker

dependencies:
  post:
    - ./build-all.sh

# According to https://circleci.com/docs/test-metadata
test:
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/build/test-results/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;

#deployment:
#  hub:
#    branch: master
#    commands:
#      - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PWD
#      - docker info
## Renaming the target-folder for the time being to be compliant with Shippable builds...
#      - mv target buildoutput
#      - docker build -t magnuslarsson/az-ip-api-server:master.$CIRCLE_BUILD_NUM .
#      - mv buildoutput target
#      - docker push magnuslarsson/az-ip-api-server:master.$CIRCLE_BUILD_NUM

Add initial support for automated build with CircleCI
Add initial support for automated build with CircleCI
