machine:
  ruby:
    version: 2.3.1

checkout:
  post:
    - git submodule init
    - git submodule update

dependencies:
  pre:
    - gem install bundler -v "$(cat Gemfile.lock | tail -n 1 | tr -d '[[:space:]]')"

test:
  override:
    - rake validate-tools

deployment:
  production:
    branch: master
    commands:
      - git config --global user.name "Apiary Bot"
      - git config --global user.email "support@apiary.io"
      - git remote set-url origin "https://${GITHUB_TOKEN}@github.com/apiaryio/apiblueprint.org"
      - bundle exec middleman deploy

general:
  branches:
    ignore:
      - gh-pages

machine:
  ruby:
    version: 2.4.1

checkout:
  post:
    - git submodule init
    - git submodule update

dependencies:
  pre:
    - gem install bundler -v "$(cat Gemfile.lock | tail -n 1 | tr -d '[[:space:]]')"

test:
  override:
    - rake validate-tools

deployment:
  production:
    branch: master
    commands:
      - git config --global user.name "Apiary Bot"
      - git config --global user.email "support@apiary.io"
      - git remote set-url origin "https://${GITHUB_TOKEN}@github.com/apiaryio/apiblueprint.org"
      - bundle exec middleman deploy

general:
  branches:
    ignore:
      - gh-pages

Use Ruby 2.4 on CI
chore: Use Ruby 2.4 on CI
