language: node_js
node_js: stable

sudo: false

cache:
  yarn: true

before_install:
  - curl -o- -L https://yarnpkg.com/install.sh | bash
  - export PATH=$HOME/.yarn/bin:$PATH

install:
  - yarn install

script:
  - yarn lint:css
  - yarn lint:js

  # build the processed/minified assets
  - yarn gulp

  # check that they results match the committed state
  - git diff --exit-code
