You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.5 KiB

  1. language: node_js
  2. node_js:
  3. - "0.6"
  4. - "0.8"
  5. - "0.10"
  6. env:
  7. matrix:
  8. - BIN="node"
  9. - BIN="phantomjs"
  10. matrix:
  11. include:
  12. - node_js: "0.10"
  13. env: BIN="narwhal"
  14. - node_js: "0.10"
  15. env: BIN="rhino"
  16. - node_js: "0.10"
  17. env: BIN="ringo"
  18. git:
  19. depth: 10
  20. branches:
  21. only:
  22. - gh-pages
  23. before_install:
  24. - "[ $BIN == 'istanbul' ] && npm i -g istanbul@\"~0.1.0\" || true"
  25. - "[ $BIN == 'narwhal' ] && wget https://github.com/280north/narwhal/archive/v0.3.2.zip && sudo unzip v0.3.2 -d /opt/ && rm v0.3.2.zip || true"
  26. - "[ $BIN == 'narwhal' ] && sudo ln -s /opt/narwhal-0.3.2/bin/narwhal /usr/local/bin/narwhal && sudo chmod +x /usr/local/bin/narwhal || true"
  27. - "[ $BIN == 'rhino' ] && sudo mkdir /opt/rhino-1.7R5 && sudo wget -O /opt/rhino-1.7R5/js.jar https://oss.sonatype.org/content/repositories/snapshots/org/mozilla/rhino/1.7R5-SNAPSHOT/rhino-1.7R5-20120629.144839-4.jar || true"
  28. - "[ $BIN == 'rhino' ] && echo -e '#!/bin/sh\\njava -jar /opt/rhino-1.7R5/js.jar $@' | sudo tee /usr/local/bin/rhino && sudo chmod +x /usr/local/bin/rhino || true"
  29. - "[ $BIN == 'ringo' ] && wget http://ringojs.org/downloads/ringojs-0.9.zip && sudo unzip ringojs-0.9 -d /opt && rm ringojs-0.9.zip || true"
  30. - "[ $BIN == 'ringo' ] && sudo ln -s /opt/ringojs-0.9/bin/ringo /usr/local/bin/ringo && sudo chmod +x /usr/local/bin/ringo || true"
  31. install: true
  32. script:
  33. - "[ $BIN == 'istanbul' ] && $BIN cover ./test/test_json3.js || cd test && $BIN ./test_json3.js"