branches:
  only:
    - master

sudo: false

os:
  - osx

env:
  - NODE_VERSION="4.1"

before_install:
  # nvm is not yet supported on osx, manually install
  - git clone https://github.com/creationix/nvm.git /tmp/.nvm
  - source /tmp/.nvm/nvm.sh
  - nvm install $NODE_VERSION
  - nvm use --delete-prefix $NODE_VERSION

install:
  - npm install
  - npm run vscode:prepublish

script:
  - npm test
  - node_modules/.bin/gulp test