box: nodesource/trusty:LTS
build:
  steps:
    - script:
        name: npm versions before
        code: |
          npm --versions
    - script:
        name: Install PhantomJS
        code: |
          sudo apt-get update
          sudo apt-get install -y phantomjs
    - script:
        name: Where was PhantomJS installed and its version
        code: |
          which phantomjs
          phantomjs --version
    - script:
        name: Install global stuff which seems to be needed
        code: |
          sudo npm i -g npm eslint mocha-phantomjs
    - script:
        name: npm versions before
        code: |
          npm --versions
    - npm-install
    - npm-test

box: nodesource/trusty:LTS
build:
  steps:
    - script:
        name: npm versions
        code: |
          npm --versions
    - script:
        name: Install PhantomJS
        code: |
          sudo apt-get update
          sudo apt-get install -y phantomjs
    - script:
        name: Where is PhantomJS installed and its version
        code: |
          which phantomjs
          phantomjs --version
    - npm-install
    - npm-test

Remove global npm installation in Wercker
Remove global npm installation in Wercker
