language: node_js
node_js:
    - "4.2"
    - "0.12"
before_script:
  - npm install -g gulp 
  - npm install phantomjs
  - npm install -g karma
language: node_js
node_js:
    - "4.2"
    - "0.12"
before_script:
  - npm install -g gulp 
  - npm install phantomjs@1.9.8
  - npm install -g karma

Set phantomJS version for 1.9.8
Set phantomJS version for 1.9.8