---
git:
  depth: 10
sudo: false
language: node_js
cache: yarn

node_js:
- '7'
- '6'
- '4'

before_script:
- yarn run bootstrap && yarn run build

script:
- if [ -n "${LINT-}" ]; then yarn run lint ; fi
- if [ -n "${SMOKE-}" ]; then node smoke/run.js $SMOKE; fi
- if [ -z "${SKIPTESTS-}" ]; then yarn run coverage; fi

matrix:
  include:
    - node_js: "node"
      env: LINT=true SKIPTESTS=true
    - node_js: "node"
      env: SMOKE=html-minifier SKIPTESTS=true
    - node_js: "node"
      env: SMOKE=jquery SKIPTESTS=true
    - node_js: "node"
      env: SMOKE=immutable-js SKIPTESTS=true
    - node_js: "node"
      env: SMOKE=lodash SKIPTESTS=true

after_success: yarn run coverage-ci

---
git:
  depth: 10
sudo: false
language: node_js
cache: yarn

node_js:
- '7'
- '6'
- '4'

# For smoke tests
# for compiling immutable js
addons:
  apt:
    sources:
      - ubuntu-toolchain-r-test
    packages:
      - g++-4.9

env:
  global:
    - CXX=g++-4.9

before_script:
- yarn run bootstrap && yarn run build

script:
- if [ -n "${LINT-}" ]; then yarn run lint ; fi
- if [ -n "${SMOKE-}" ]; then node smoke/run.js $SMOKE; fi
- if [ -z "${SKIPTESTS-}" ]; then yarn run coverage; fi

matrix:
  include:
    - node_js: "node"
      env: LINT=true SKIPTESTS=true
    - node_js: "node"
      env: SMOKE=html-minifier SKIPTESTS=true
    - node_js: "node"
      env: SMOKE=jquery SKIPTESTS=true
    - node_js: "node"
      env: SMOKE=immutable-js SKIPTESTS=true
    - node_js: "node"
      env: SMOKE=lodash SKIPTESTS=true

after_success: yarn run coverage-ci

Add g++-4.9 for compiling immutable-js deps which fails on CI
Add g++-4.9 for compiling immutable-js deps which fails on CI
