language: node_js
node_js:
  - "4.1"
  - "4.0"
env:
  -
  - BROWSER=1
  - BROWSER=1 NOCOMPRESS=1
script:
  - export BUILD_PARAMS=""
  - if [ "x$BROWSER" = "x1" ]; then export BUILD_PARAMS="$BUILD_PARAMS -t browser"; else export BUILD_PARAMS="$BUILD_PARAMS -t node"; fi
  - if [ "x$NOCOMPRESS" = "x1" ]; then export BUILD_PARAMS="$BUILD_PARAMS -n"; fi
  - node tools/build.js $BUILD_PARAMS
  - if [ "x$BROWSER" = "x1" ]; then npm run test-browser; else npm run test; fi
sudo: false  # Use container-based architecture

language: node_js
node_js:
  - "4"
  - "5"
env:
  -
  - BROWSER=1
  - BROWSER=1 NOCOMPRESS=1
script:
  - export BUILD_PARAMS=""
  - if [ "x$BROWSER" = "x1" ]; then export BUILD_PARAMS="$BUILD_PARAMS -t browser"; else export BUILD_PARAMS="$BUILD_PARAMS -t node"; fi
  - if [ "x$NOCOMPRESS" = "x1" ]; then export BUILD_PARAMS="$BUILD_PARAMS -n"; fi
  - node tools/build.js $BUILD_PARAMS
  - if [ "x$BROWSER" = "x1" ]; then npm run test-browser; else npm run test; fi
sudo: false  # Use container-based architecture

Update node versions for testing
Update node versions for testing

This will pull the latest version of node 4.x.x and 5.x.x
