language: python
python:
  - "2.7"
  - "3.4"
before_install:
  - nvm install 4.2
install:
  - pip install -r requirements_for_test.txt
  - npm install
  - npm run frontend-build:production
script:
  - PYTEST_ARGS='--cov=app --cov-report=term-missing' make test
after_success:
  - coveralls
notifications:
  email: false

language: python
cache:
  pip: true
  directories:
    - node_modules
    - bower_components
python:
  - "2.7"
  - "3.4"
before_install:
  - nvm install 4.2
install:
  - pip install -r requirements_for_test.txt
  - npm install
  - npm run frontend-build:production
script:
  - PYTEST_ARGS='--cov=app --cov-report=term-missing' make test
after_success:
  - coveralls
notifications:
  email: false

Enable Travis cache for pip, npm and bower
Enable Travis cache for pip, npm and bower

We've seen travis builds fail sometimes during npm install, so
maybe [caching the dependency paths][1] will help to avoid this.

This might introduce other issues though, with stale cache causing
the build to run outdated code, so keep in mind you might need to
clear the travis cache if the build fails unexpectedly.

[1]: https://docs.travis-ci.com/user/caching
