---
language: node_js
node_js:
  - "4"

sudo: false

cache:
  directories:
    - node_modules

before_install:
  - npm config set spin false
  - npm install -g bower
  - bower --version
  - npm install phantomjs-prebuilt
  - phantomjs --version

install:
  - npm install
  - bower install

script:
  - npm test

---
language: node_js
node_js:
  - "4"

sudo: false

cache:
  directories:
    - node_modules

before_install:
  - npm config set spin false
  - npm install -g bower
  - bower --version
  - npm install phantomjs-prebuilt
  - phantomjs --version

install:
  - npm install
  - bower install

script:
  - npm test

deploy:
  provider: npm
  email: stefan.penner+ember-cli@gmail.com
  api_key:
    secure: MW2THQxjL0qd7qdasRXVrc8vPBznsSFpPdB72lQQq6zB81i0EerwdWLt0a1xcM/60jOrP5OZiSQ/kee+657wLbL2Hvz1bS2umzTuqmlIZ9j7dLgdI9rHxx5asafP6MuEN5oHzJtHgFI2IC7E//iPmu1SiXwdWYVPYPU8S6K8YcM=
  on:
    tags: true
    repo: ember-cli/ember-load-initializers

Enable automatic NPM deployment for tags
CI: Enable automatic NPM deployment for tags
