2012-10-28 16:40:42 +01:00
|
|
|
language: node_js
|
2019-12-21 09:07:11 +01:00
|
|
|
|
2012-10-28 16:40:42 +01:00
|
|
|
node_js:
|
2018-08-27 10:05:35 +02:00
|
|
|
- "lts/*"
|
2019-12-21 09:07:11 +01:00
|
|
|
|
2019-12-01 15:38:47 +01:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2020-05-29 22:42:44 +02:00
|
|
|
cache: false
|
2020-05-29 13:28:31 +02:00
|
|
|
|
2020-03-22 03:11:14 +01:00
|
|
|
install:
|
|
|
|
- "bin/installDeps.sh"
|
|
|
|
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- "tests/frontend/travis/sauce_tunnel.sh"
|
|
|
|
|
|
|
|
script:
|
|
|
|
- "tests/frontend/travis/runner.sh"
|
|
|
|
|
2012-10-28 17:48:51 +01:00
|
|
|
env:
|
|
|
|
global:
|
2013-06-06 19:16:04 +02:00
|
|
|
- secure: "WMGxFkOeTTlhWB+ChMucRtIqVmMbwzYdNHuHQjKCcj8HBEPdZLfCuK/kf4rG\nVLcLQiIsyllqzNhBGVHG1nyqWr0/LTm8JRqSCDDVIhpyzp9KpCJQQJG2Uwjk\n6/HIJJh/wbxsEdLNV2crYU/EiVO3A4Bq0YTHUlbhUqG3mSCr5Ec="
|
|
|
|
- secure: "gejXUAHYscbR6Bodw35XexpToqWkv2ifeECsbeEmjaLkYzXmUUNWJGknKSu7\nEUsSfQV8w+hxApr1Z+jNqk9aX3K1I4btL3cwk2trnNI8XRAvu1c1Iv60eerI\nkE82Rsd5lwUaMEh+/HoL8ztFCZamVndoNgX7HWp5J/NRZZMmh4g="
|
2019-12-21 09:07:11 +01:00
|
|
|
|
2019-12-21 10:10:35 +01:00
|
|
|
jobs:
|
2020-06-08 13:39:20 +02:00
|
|
|
allow_failures:
|
|
|
|
- if: repo = ether/etherpad-lite
|
|
|
|
# below might not be needed..
|
|
|
|
env: SAUCE_EXECUTE=true
|
|
|
|
- name: "Test the Frontend"
|
|
|
|
install:
|
|
|
|
- "bin/installDeps.sh"
|
|
|
|
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
|
|
|
|
script:
|
|
|
|
- "tests/frontend/travis/runner.sh"
|
2019-12-21 10:10:35 +01:00
|
|
|
include:
|
2020-04-03 03:27:05 +02:00
|
|
|
- name: "Run the Backend tests"
|
|
|
|
install:
|
2020-05-29 14:26:34 +02:00
|
|
|
- "bin/installDeps.sh"
|
2020-04-03 03:27:05 +02:00
|
|
|
- "cd src && npm install && cd -"
|
|
|
|
script:
|
|
|
|
- "tests/frontend/travis/runnerBackend.sh"
|
2019-12-01 15:38:47 +01:00
|
|
|
- name: "Test the Dockerfile"
|
2019-12-03 23:14:00 +01:00
|
|
|
install:
|
|
|
|
- "cd src && npm install && cd -"
|
2019-12-01 15:38:47 +01:00
|
|
|
script:
|
2019-12-03 23:14:00 +01:00
|
|
|
- "docker build -t etherpad:test ."
|
|
|
|
- "docker run -d -p 9001:9001 etherpad:test && sleep 3"
|
|
|
|
- "cd src && npm run test-container"
|
2020-05-30 20:17:33 +02:00
|
|
|
- name: "Load test Etherpad"
|
|
|
|
install:
|
|
|
|
- "bin/installDeps.sh"
|
|
|
|
- "cd src && npm install && cd -"
|
2020-05-30 20:22:24 +02:00
|
|
|
- "npm install -g etherpad-load-test"
|
2020-05-30 22:02:40 +02:00
|
|
|
# I set loadTest to true
|
|
|
|
- "sed 's/\"loadTest\": false,/\"loadTest\": true,/g' settings.json.template > settings.json"
|
2020-05-30 20:17:33 +02:00
|
|
|
script:
|
|
|
|
- "tests/frontend/travis/runnerLoadTest.sh"
|
2019-12-21 10:10:35 +01:00
|
|
|
|
2012-10-28 16:40:42 +01:00
|
|
|
notifications:
|
2012-11-03 15:36:59 +01:00
|
|
|
irc:
|
|
|
|
channels:
|
2013-04-15 17:33:20 +02:00
|
|
|
- "irc.freenode.org#etherpad-lite-dev"
|