2012-10-28 15:40:42 +00:00
|
|
|
language: node_js
|
2019-12-21 08:07:11 +00:00
|
|
|
|
2012-10-28 15:40:42 +00:00
|
|
|
node_js:
|
2018-08-27 08:05:35 +00:00
|
|
|
- "lts/*"
|
2019-12-21 08:07:11 +00:00
|
|
|
|
2019-12-01 14:38:47 +00:00
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
2020-05-29 20:42:44 +00:00
|
|
|
cache: false
|
2020-05-29 11:28:31 +00:00
|
|
|
|
2020-07-10 15:13:06 +00:00
|
|
|
before_install:
|
2020-07-16 09:46:45 +00:00
|
|
|
- sudo add-apt-repository -y ppa:libreoffice/ppa
|
|
|
|
- sudo apt-get update
|
2020-07-10 15:13:06 +00:00
|
|
|
- sudo apt-get -y install libreoffice
|
2020-07-16 09:46:45 +00:00
|
|
|
- sudo apt-get -y install libreoffice-pdfimport
|
2020-07-10 15:13:06 +00:00
|
|
|
|
2020-03-22 02:11:14 +00:00
|
|
|
install:
|
|
|
|
- "bin/installDeps.sh"
|
|
|
|
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
|
2020-09-16 21:13:15 +00:00
|
|
|
# - "npm install ep_hash_auth"
|
|
|
|
- "git clone https://github.com/ether/ep_hash_auth.git node_modules/ep_hash_auth"
|
2020-03-22 02:11:14 +00:00
|
|
|
|
|
|
|
script:
|
|
|
|
- "tests/frontend/travis/runner.sh"
|
|
|
|
|
2012-10-28 16:48:51 +00:00
|
|
|
env:
|
|
|
|
global:
|
2013-06-06 17:16:04 +00:00
|
|
|
- secure: "WMGxFkOeTTlhWB+ChMucRtIqVmMbwzYdNHuHQjKCcj8HBEPdZLfCuK/kf4rG\nVLcLQiIsyllqzNhBGVHG1nyqWr0/LTm8JRqSCDDVIhpyzp9KpCJQQJG2Uwjk\n6/HIJJh/wbxsEdLNV2crYU/EiVO3A4Bq0YTHUlbhUqG3mSCr5Ec="
|
|
|
|
- secure: "gejXUAHYscbR6Bodw35XexpToqWkv2ifeECsbeEmjaLkYzXmUUNWJGknKSu7\nEUsSfQV8w+hxApr1Z+jNqk9aX3K1I4btL3cwk2trnNI8XRAvu1c1Iv60eerI\nkE82Rsd5lwUaMEh+/HoL8ztFCZamVndoNgX7HWp5J/NRZZMmh4g="
|
2019-12-21 08:07:11 +00:00
|
|
|
|
2019-12-21 09:10:35 +00:00
|
|
|
jobs:
|
2020-06-08 11:45:03 +00:00
|
|
|
include:
|
2020-06-08 12:51:57 +00:00
|
|
|
# we can only frontend tests from the ether/ organization and not from forks.
|
|
|
|
# To request tests to be run ask a maintainer to fork your repo to ether/
|
|
|
|
- if: fork = false
|
|
|
|
name: "Test the Frontend"
|
2020-06-08 11:39:20 +00:00
|
|
|
install:
|
2020-07-28 18:57:33 +00:00
|
|
|
#FIXME
|
|
|
|
- "sed 's/\"loglevel\": \"INFO\",/\"loglevel\": \"WARN\",/g' settings.json.template > settings.json"
|
2020-06-08 16:18:22 +00:00
|
|
|
- "tests/frontend/travis/sauce_tunnel.sh"
|
2020-06-08 11:39:20 +00:00
|
|
|
- "bin/installDeps.sh"
|
|
|
|
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
|
|
|
|
script:
|
|
|
|
- "tests/frontend/travis/runner.sh"
|
2020-04-03 01:27:05 +00:00
|
|
|
- name: "Run the Backend tests"
|
|
|
|
install:
|
2020-05-29 12:26:34 +00:00
|
|
|
- "bin/installDeps.sh"
|
2020-09-16 21:52:16 +00:00
|
|
|
- "git clone https://github.com/ether/ep_hash_auth.git node_modules/ep_hash_auth"
|
2020-04-03 01:27:05 +00:00
|
|
|
- "cd src && npm install && cd -"
|
|
|
|
script:
|
|
|
|
- "tests/frontend/travis/runnerBackend.sh"
|
2020-07-16 09:46:45 +00:00
|
|
|
## Temporarily commented out the Dockerfile tests
|
|
|
|
# - name: "Test the Dockerfile"
|
|
|
|
# install:
|
|
|
|
# - "cd src && npm install && cd -"
|
|
|
|
# script:
|
|
|
|
# - "docker build -t etherpad:test ."
|
|
|
|
# - "docker run -d -p 9001:9001 etherpad:test && sleep 3"
|
|
|
|
# - "cd src && npm run test-container"
|
2020-05-30 18:17:33 +00:00
|
|
|
- name: "Load test Etherpad"
|
|
|
|
install:
|
|
|
|
- "bin/installDeps.sh"
|
|
|
|
- "cd src && npm install && cd -"
|
2020-05-30 18:22:24 +00:00
|
|
|
- "npm install -g etherpad-load-test"
|
2020-05-30 18:17:33 +00:00
|
|
|
script:
|
|
|
|
- "tests/frontend/travis/runnerLoadTest.sh"
|
2019-12-21 09:10:35 +00:00
|
|
|
|
2012-10-28 15:40:42 +00:00
|
|
|
notifications:
|
2012-11-03 14:36:59 +00:00
|
|
|
irc:
|
|
|
|
channels:
|
2013-04-15 15:33:20 +00:00
|
|
|
- "irc.freenode.org#etherpad-lite-dev"
|