sudo: false
cache:
  directories:
  - $HOME/.cache/bower
before_install:
  - npm install -g eslint eslint eslint-plugin-react eslint-config-airbnb-es5 babel-eslint bower
  - pip install --user RangeHTTPServer
install:
  - bower install
before_script:
  - python -m RangeHTTPServer &
script:
  - phantomjs test/run-jasmine.js http://localhost:8000/test/
after_script:
  - eslint js
