machine:
  timezone: Asia/Tokyo
  environment:
    PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
  node:
    version: 8.0.0

dependencies:
  override:
    - yarn
  cache_directories:
      - ~/.cache/yarn

compile:
  override:
    - yarn run build:develop

test:
  override:
    - yarn pug-lint ./src
    - yarn eslint ./src/js

deployment:
  staging:
    branch: master
    commands:
      - yarn install:production
      - yarn s3sync:staging
      - yarn deploy:production
  develop:
    branch: /.*/
    commands:
      - yarn install:develop
      - yarn s3sync:develop

machine:
  timezone: Asia/Tokyo
  environment:
    PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
  node:
    version: 8.0.0

dependencies:
  override:
    - yarn
  cache_directories:
      - ~/.cache/yarn

compile:
  override:
    - yarn run build:develop

test:
  override:
    - yarn pug-lint ./src
    - yarn eslint ./src/js

deployment:
  staging:
    branch: master
    commands:
      - yarn install:production
      - yarn s3sync:staging
  develop:
    branch: /.*/
    commands:
      - yarn install:develop
      - yarn s3sync:develop

Revert "CI: fix: deploy production when pushed master."
Revert "CI: fix: deploy production when pushed master."

This reverts commit 8cbd3f1
