.travis.yml 999 B

1234567891011121314151617181920212223242526
  1. sudo: false
  2. language: node_js
  3. node_js:
  4. - 8
  5. cache:
  6. directories:
  7. - "travis_phantomjs"
  8. - "$HOME/.npm"
  9. before_install:
  10. - "export PHANTOMJS_VERSION=2.1.1"
  11. - "hash -r"
  12. - "phantomjs --version"
  13. - "export PATH=$PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64/bin:$PATH"
  14. - "hash -r"
  15. - "phantomjs --version"
  16. - "if [ $(phantomjs --version) != \"$PHANTOMJS_VERSION\" ]; then rm -rf $PWD/travis_phantomjs; mkdir -p $PWD/travis_phantomjs; fi"
  17. - "hash -r"
  18. - "if [ $(phantomjs --version) != \"$PHANTOMJS_VERSION\" ]; then wget https://github.com/Medium/phantomjs/releases/download/v$PHANTOMJS_VERSION/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -O $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2; fi"
  19. - "if [ $(phantomjs --version) != \"$PHANTOMJS_VERSION\" ]; then tar -xvf $PWD/travis_phantomjs/phantomjs-$PHANTOMJS_VERSION-linux-x86_64.tar.bz2 -C $PWD/travis_phantomjs; fi"
  20. - "hash -r"
  21. - "phantomjs --version"
  22. install:
  23. - npm ci