.travis.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  1. language: node_js
  2. cache:
  3. directories:
  4. - travis-phantomjs
  5. node_js:
  6. - "9"
  7. - "8"
  8. - "6"
  9. before_install:
  10. # from https://github.com/travis-ci/travis-ci/issues/3225#issuecomment-177592725
  11. # and also from https://github.com/travis-ci/travis-ci/issues/3225#issuecomment-200965782
  12. - phantomjs --version
  13. - export PATH=$PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64/bin:$PATH
  14. - phantomjs --version
  15. # Clear cache and download new copy of PhantomJS if the current version doesn't match 2.1.1.
  16. - "if [ $(phantomjs --version) != '2.1.1' ]; then rm -rf $PWD/travis-phantomjs; mkdir -p $PWD/travis-phantomjs; fi"
  17. - "if [ $(phantomjs --version) != '2.1.1' ]; then wget https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2 -O $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2; fi"
  18. - "if [ $(phantomjs --version) != '2.1.1' ]; then tar -xvf $PWD/travis-phantomjs/phantomjs-2.1.1-linux-x86_64.tar.bz2 -C $PWD/travis-phantomjs; fi"
  19. - phantomjs --version
  20. install:
  21. - npm install -g grunt-cli
  22. # node 0.10 & 0.12 have race condition issues when running custom install scripts
  23. # this can cause phantomjs-prebuilt install script to fail with the error:
  24. # <Cannot find module 'boom'>
  25. # Seems related to: https://github.com/npm/npm/issues/8152
  26. # using <travis_retry> solves this.
  27. - travis_retry npm install
  28. env:
  29. global:
  30. - PHANTOMJS_CDNURL=http://cnpmjs.org/downloads
  31. - secure: TrNVruWYaUK5ALga1y7wRY+MLjWJECUSCsBmKW5EUmIevOUxqHWu7M89FANKxstEeFRRAGH3QJbloRxnzIgh0U0ah5npE9XA1bYXGO5khoXeIyk7pNRfjIo8aEnJH1Vp8vWA6J6ovxdJ7lCFKEGvGKxGde50knVl7KFVVULlX2U=
  32. - secure: Rzh+CEI7YRvvVkOruPE8Z0dkU0s13V6b6cpqbN72vxbJl/Jm5PUZkjTFJdkWJrW3ErhCKX6EC7XdGvrclqEA9WAqKzrecqCJYqTnw4MwqiAj6F9wqE/BqhoWg4xPxm0MK/7eJMvLCgjNpe+gc1CaeFJZkLSNWn6nOFke+vVlf9Q=
  33. sudo: false