sudo: false
language: "node_js"
node_js:
  - "4"
  - "6"
env:
  global:
    # GH_TOKEN and NPM_TOKEN encrypted by 'travis encrypt' utility
    - secure: "gO5DrzOfF+l3hjvs0kLYUrGEnYVwrDy7NTGNrtPmLrrfdS6qmUNbTVggjra2aDM82lZYo0slZaOtjedSd8GMNE41egHAq0aGMJfhNrXjr+ROOIkc1BRUn3vTp5lk/n4eU7bLozoiriBphmKHHwZqekSn2orvIpAtoWL/JPVzheY="
cache:
  directories:
    - "node_modules"
before_install:
  # Travis CI has only shallow clone of the repository. We need to get the 'master' branch
  # so 'conventional-changelog-lint' could compare commits and lint them: marionebl/conventional-changelog-lint#7
  - "git remote set-branches origin master && git fetch && git checkout master && git checkout -"
  - "npm -g install npm@latest"
install: "npm install --no-optional"
script:
  - "npm run lint"
  - "npm run docs:lint"
  - "npm run test:coverage"
after_success:
  - "npm run coveralls || true"
  - "npm run semantic-release || true"

sudo: false
dist: "trusty"  # otherwise 'python3-pip' won't be available
language: "node_js"
addons:
  apt:
    packages:
      - "python3"
      - "python3-pip"
node_js:
  - "4"
  - "6"
env:
  global:
    # GH_TOKEN and NPM_TOKEN encrypted by 'travis encrypt' utility
    - secure: "gO5DrzOfF+l3hjvs0kLYUrGEnYVwrDy7NTGNrtPmLrrfdS6qmUNbTVggjra2aDM82lZYo0slZaOtjedSd8GMNE41egHAq0aGMJfhNrXjr+ROOIkc1BRUn3vTp5lk/n4eU7bLozoiriBphmKHHwZqekSn2orvIpAtoWL/JPVzheY="
cache:
  directories:
    - "node_modules"
before_install:
  # Travis CI has only shallow clone of the repository. We need to get the 'master' branch
  # so 'conventional-changelog-lint' could compare commits and lint them: marionebl/conventional-changelog-lint#7
  - "git remote set-branches origin master && git fetch && git checkout master && git checkout -"
  - "npm -g install npm@latest"
  - "pip3 install -r docs/requirements.txt"
install: "npm install --no-optional"
script:
  - "npm run lint"
  - "npm run docs:build"
  - "npm run test:coverage"
after_success:
  - "npm run coveralls || true"
  - "npm run semantic-release || true"

Update Travis CI config to be able to work with docs
chore: Update Travis CI config to be able to work with docs
