machine:
  timezone:
    Asia/Tokyo
  java:
    version: oraclejdk8
  services:

general:
  branches:
    ignore:
      - gh-pages # list of branches to ignore

dependencies:
  pre:
    - bash ci/install-coverage-reporter.sh
  cache_directories:
    - ~/.jpm

test:
  post:
    - mvn jacoco:report
    - codacy-coverage-reporter -l Java -r target/site/jacoco/jacoco.xml --projectToken ${CODACY_PROJECT_TOKEN}
    - mv ./target/surefire-reports $CIRCLE_TEST_REPORTS/junit

deployment:
  release: # just a label; label names are completely up to you
    tag: /v[0-9]+(\.[0-9]+)*/
    commands:
      - mvn -s ci/settings.xml deploy
      - curl --user ${BINTRAY_USER}\:${BINTRAY_TOKEN} -X POST -H "X-GPG-PASSPHRASE\: ${GPG_SECRET_PASSWORD}" https://api.bintray.com/gpg/ryotan/maven/kaba-vault/versions/$(echo ${CIRCLE_TAG} | sed -e 's/^v//')
  snapshot:
    branch: develop
    commands:
      - mvn -s ci/settings.xml deploy

machine:
  timezone:
    Asia/Tokyo
  java:
    version: oraclejdk8
  services:

general:
  branches:
    ignore:
      - gh-pages # list of branches to ignore

dependencies:
  pre:
    - bash ci/install-coverage-reporter.sh
  cache_directories:
    - ~/.jpm

test:
  post:
    - mvn jacoco:report
    - codacy-coverage-reporter -l Java -r target/site/jacoco/jacoco.xml --projectToken ${CODACY_PROJECT_TOKEN}
    - mv ./target/surefire-reports $CIRCLE_TEST_REPORTS/junit

deployment:
  release: # just a label; label names are completely up to you
    tag: /v[0-9]+(\.[0-9]+)*/
    commands:
      - mvn -s ci/settings.xml deploy
      - curl --user ${BINTRAY_USER}\:${BINTRAY_TOKEN} -X POST -H "X-GPG-PASSPHRASE:${GPG_SECRET_PASSWORD}" https://api.bintray.com/gpg/ryotan/maven/kaba-vault/versions/$(echo ${CIRCLE_TAG} | sed -e 's/^v//')
  snapshot:
    branch: develop
    commands:
      - mvn -s ci/settings.xml deploy

Delete white space after colon. In RFC7230, header-field = field-name ":" OWS field-value OWS. OWS means "optional whitespace".
Delete white space after colon. In RFC7230, header-field = field-name ":" OWS field-value OWS. OWS means "optional whitespace".
