# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# title      Circle CI Build Configuration                         +
# project    icecore-hashids                                       +
# version                                                          +
# repository https://bitbucket.org/arcticicestudio/icecore-hashids +
# author     Arctic Ice Studio                                     +
# email      development@arcticicestudio.com                       +
# copyright  Copyright (C) 2016                                    +
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# [References]
# Circle CI
#   (https://circleci.com/docs)
machine:
  java:
    version: oraclejdk8

general:
  artifacts:
    - ./target/*.jar

test:
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
  override:
    - mvn clean verify assembly:single -P code-coverage,assemble
    - cp ./target/{*.jar,*.md5,*.sha1,*.tar.gz,*.zip} $CIRCLE_ARTIFACTS

# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
# title      Circle CI Build Configuration                         +
# project    icecore-hashids                                       +
# version                                                          +
# repository https://bitbucket.org/arcticicestudio/icecore-hashids +
# author     Arctic Ice Studio                                     +
# email      development@arcticicestudio.com                       +
# copyright  Copyright (C) 2016                                    +
# ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#
# [References]
# Circle CI
#   (https://circleci.com/docs)
machine:
  java:
    version: oraclejdk8

general:
  artifacts:
    - ./target/*.jar

test:
  post:
    - mkdir -p $CIRCLE_TEST_REPORTS/junit/
    - find . -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} $CIRCLE_TEST_REPORTS/junit/ \;
  override:
    - mvn clean verify assembly:single -P code-coverage,assemble
    - find . -type f -regextype posix-egrep -regex ".*/target/(.*asc|.*jar|.*md5|.*pom|.*sha1|.*tar.gz|.*zip)" -exec cp {} $CIRCLE_ARTIFACTS \;

Improve Circle CI artifact copy task find-regexp command
Improve Circle CI artifact copy task find-regexp command
