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.

70 lines
2.3 KiB

преди 4 години
  1. language: node_js
  2. node_js:
  3. - "lts/*"
  4. cache: false
  5. services:
  6. - docker
  7. install:
  8. - "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
  9. #script:
  10. # - "tests/frontend/travis/runner.sh"
  11. env:
  12. global:
  13. - secure: "WMGxFkOeTTlhWB+ChMucRtIqVmMbwzYdNHuHQjKCcj8HBEPdZLfCuK/kf4rG\nVLcLQiIsyllqzNhBGVHG1nyqWr0/LTm8JRqSCDDVIhpyzp9KpCJQQJG2Uwjk\n6/HIJJh/wbxsEdLNV2crYU/EiVO3A4Bq0YTHUlbhUqG3mSCr5Ec="
  14. - secure: "gejXUAHYscbR6Bodw35XexpToqWkv2ifeECsbeEmjaLkYzXmUUNWJGknKSu7\nEUsSfQV8w+hxApr1Z+jNqk9aX3K1I4btL3cwk2trnNI8XRAvu1c1Iv60eerI\nkE82Rsd5lwUaMEh+/HoL8ztFCZamVndoNgX7HWp5J/NRZZMmh4g="
  15. jobs:
  16. include:
  17. - name: "Lint test package-lock"
  18. install:
  19. - "npm install lockfile-lint"
  20. script:
  21. - npx lockfile-lint --path package-lock.json --validate-https --allowed-hosts npm
  22. - name: "Run the Backend tests"
  23. before_install:
  24. - sudo add-apt-repository -y ppa:libreoffice/ppa
  25. - sudo apt-get update
  26. - sudo apt-get -y install libreoffice
  27. - sudo apt-get -y install libreoffice-pdfimport
  28. install:
  29. - "npm install"
  30. - "mkdir ep_adminpads2"
  31. - "mv !(ep_adminpads2) ep_adminpads2"
  32. - "git clone https://github.com/ether/etherpad-lite.git etherpad"
  33. - "cd etherpad"
  34. - "mkdir -p node_modules"
  35. - "mv ../ep_adminpads2 node_modules"
  36. - "bin/installDeps.sh"
  37. - "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
  38. - "cd src && npm install && cd -"
  39. script:
  40. - "tests/frontend/travis/runnerBackend.sh"
  41. - name: "Test the Frontend"
  42. before_script:
  43. - "tests/frontend/travis/sauce_tunnel.sh"
  44. install:
  45. - "npm install"
  46. - "mkdir ep_adminpads2"
  47. - "mv !(ep_adminpads2) ep_adminpads2"
  48. - "git clone https://github.com/ether/etherpad-lite.git etherpad"
  49. - "cd etherpad"
  50. - "mkdir -p node_modules"
  51. - "mv ../ep_adminpads2 node_modules"
  52. - "bin/installDeps.sh"
  53. - "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
  54. script:
  55. - "tests/frontend/travis/runner.sh"
  56. notifications:
  57. irc:
  58. channels:
  59. - "irc.freenode.org#etherpad-lite-dev"
  60. ##ETHERPAD_TRAVIS_V=9
  61. ## Travis configuration automatically created using bin/plugins/updateAllPluginsScript.sh