sudo: false
language: node_js
node_js:
  - "0.12"
  - "0.11"
  - "0.10"
  - "0.9"
  - "0.8"
  - "0.6"

# We do not test against 0.7 because
#- "0.7"

before_install:
  - npm conf set strict-ssl false

before_script:
  - if [[ `node -v` == v0.12* ]]; then COVERAGE=true; fi
  - if [[ $COVERAGE == "true" ]]; then npm install -g istanbul; npm install -g codeclimate-test-reporter; fi

script:
  - if [[ $COVERAGE == "true" ]]; then npm run test-and-coverage   ; else npm run test; fi
sudo: false
language: node_js
node_js:
  - "0.12"
  - "0.11"
  - "0.10"
  - "0.9"
  - "0.8"
  - "0.6"

# We do not test against 0.7 because
#- "0.7"

before_install:
  - npm conf set strict-ssl false

before_script:
  - if [[ `node -v` == v0.12* ]]; then COVERAGE=true; fi
  - if [[ $COVERAGE == "true" ]]; then npm install -g istanbul; npm install -g codeclimate-test-reporter; fi

script:
  - if [[ $COVERAGE == "true" ]]; then npm run test-and-coverage   ; else npm run test; fi

after_script:
  - if [[ $COVERAGE == "true" ]]; then codeclimate-test-reporter < coverage/lcov.info; fi
Send coverage to codeclimate in after_script
Send coverage to codeclimate in after_script
