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

sudo: required

services:
  - redis-server

addons:
  chrome: stable

cache:
  directories:
    - $HOME/.npm
    - $HOME/sockethub

env:
  global:
    # See https://git.io/vdao3 for details.
    - JOBS=1

before_install:
  - npm config set spin false

install:
  - mkdir -p $HOME/sockethub
  - cd $HOME/sockethub
  - npm install sockethub
  - cd node_modules/sockethub
  - npm install
  - cd $TRAVIS_BUILD_DIR
  - npm install

before_script:
  - $HOME/sockethub/node_modules/sockethub/bin/sockethub 2> /dev/null &

script:
  - npm run lint:js
  - npm test

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

sudo: required

services:
  - redis-server

addons:
  chrome: stable

cache:
  directories:
    - $HOME/.npm
    - $HOME/sockethub

env:
  global:
    # See https://git.io/vdao3 for details.
    - JOBS=1

before_install:
  - npm config set spin false

install:
  - cd $HOME
  - git clone https://github.com/sockethub/sockethub.git
  - cd sockethub
  - npm install
  - cd $TRAVIS_BUILD_DIR
  - npm install

before_script:
  - cd $HOME/sockethub
  - npm start 2> /dev/null &

script:
  - npm run lint:js
  - npm test

Use Sockethub master from GitHub
Use Sockethub master from GitHub
