machine:
  node:
    version: 8

checkout:
  post:
    - git submodule update --init

dependencies:
  cache_directories:
    - "site/node_modules"
  override:
    - npm install -g hexo-cli
    - npm install:
        pwd: site

test:
  override:
    # maybe we will need tests in the future
    - echo 'ok!'

deployment:
  s3:
    branch: /^(master|version-.*|translation-.*)/
    commands:
      - npm run deploy:
          pwd: site

machine:
  node:
    version: 8

checkout:
  post:
    - git submodule update --init

dependencies:
  cache_directories:
    - "site/node_modules"
  override:
    - npm install:
        pwd: site

test:
  override:
    # maybe we will need tests in the future
    - echo 'ok!'

deployment:
  s3:
    branch: /^(master|version-.*|translation-.*)/
    commands:
      - npm run deploy:
          pwd: site

Stop installing `hexo-cli` on tests in CircleCI.
Stop installing `hexo-cli` on tests in CircleCI.

The command is already present in `hexo` and will be available through
the new npm scripts (see HEAD~).
