language: node_js
node_js:
   - "0.11"
   - "0.10"
   - "0.8"
before_install:
  - sudo pip install cpp-coveralls coveralls-merge
install:
  - LDFLAGS=--coverage CFLAGS=--coverage CXXFLAGS=--coverage npm install
script:
  - ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec -s 200
after_success:
  - cpp-coveralls --gcov-options '\-lp' --build-root build --exclude build/liblzma --exclude node_modules --dump coverage/cppfiles.json
  - ./node_modules/coveralls/bin/coveralls.js -w < coverage/lcov.info > coverage/jsfiles.json
  - coveralls-merge coverage/jsfiles.json coverage/cppfiles.json

language: node_js
node_js:
  - "0.11"
  - "0.10"
  - "0.8"
env:
  - CXXFLAGS=-std=c++98 CXX=g++ CC=gcc
  - CXXFLAGS=-std=c++0x CXX=g++ CC=gcc
  - CXXFLAGS=-std=c++98 CXX=clang++ CC=clang
  - CXXFLAGS=-std=c++0x CXX=clang++ CC=clang
before_install:
  - sudo pip install cpp-coveralls coveralls-merge
  - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  - sudo apt-get update -qq
  - if [ "$CXX" = "clang++" ]; then sudo apt-get install -y -qq libstdc++-4.8-dev; fi
  - if [ "$CXX" = "g++" ]; then sudo apt-get install -y -qq g++-4.8; export CXX="g++-4.8" CC="gcc-4.8"; fi
install:
  - LDFLAGS=--coverage CFLAGS=--coverage CXXFLAGS=--coverage npm install
script:
  - ./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec -s 200
after_success:
  - cpp-coveralls --gcov-options '\-lp' --build-root build --exclude build/liblzma --exclude node_modules --dump coverage/cppfiles.json
  - ./node_modules/coveralls/bin/coveralls.js -w < coverage/lcov.info > coverage/jsfiles.json
  - coveralls-merge coverage/jsfiles.json coverage/cppfiles.json

Add clang to build matrix
Add clang to build matrix
