---
language: node_js
node_js:
  - "lts/*"

sudo: false
dist: xenial

cache:
  directories:
    - node_modules
    - apps/contribution/node_modules
    - apps/contributor/node_modules
    - apps/proposal/node_modules
    - apps/token/node_modules
    - apps/vault/node_modules

install:
  - npm install -g @aragon/cli
  - npm install -g truffle
  - npm install

before_script:
  - npm run devchain &
  - sleep 10

script:
  - npm run lint:wrapper
  - npm run lint:contract-tests
  # FIXME Fix tests
  # - npm run test:token
  # - npm run test:contributor
  # - npm run test:contribution
  # - npm run test:proposal

branches:
  only:
    - master
