Compare commits
2 Commits
develop
...
debug-self
Author | SHA1 | Date |
---|---|---|
webzwo0i | 88808960f0 | |
webzwo0i | 7da94c24a4 |
101
.travis.yml
101
.travis.yml
|
@ -1,106 +1,21 @@
|
||||||
|
dist: xenial
|
||||||
language: node_js
|
language: node_js
|
||||||
|
|
||||||
node_js:
|
node_js:
|
||||||
- "lts/*"
|
- "10.13"
|
||||||
|
|
||||||
services:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
cache: false
|
cache: false
|
||||||
|
|
||||||
before_install:
|
|
||||||
- sudo add-apt-repository -y ppa:libreoffice/ppa
|
|
||||||
- sudo apt-get update
|
|
||||||
- sudo apt-get -y install libreoffice
|
|
||||||
- sudo apt-get -y install libreoffice-pdfimport
|
|
||||||
|
|
||||||
install:
|
|
||||||
- "bin/installDeps.sh"
|
|
||||||
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
|
|
||||||
# Installing some plugins
|
|
||||||
|
|
||||||
script:
|
|
||||||
- "tests/frontend/travis/runner.sh"
|
|
||||||
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- secure: "WMGxFkOeTTlhWB+ChMucRtIqVmMbwzYdNHuHQjKCcj8HBEPdZLfCuK/kf4rG\nVLcLQiIsyllqzNhBGVHG1nyqWr0/LTm8JRqSCDDVIhpyzp9KpCJQQJG2Uwjk\n6/HIJJh/wbxsEdLNV2crYU/EiVO3A4Bq0YTHUlbhUqG3mSCr5Ec="
|
|
||||||
- secure: "gejXUAHYscbR6Bodw35XexpToqWkv2ifeECsbeEmjaLkYzXmUUNWJGknKSu7\nEUsSfQV8w+hxApr1Z+jNqk9aX3K1I4btL3cwk2trnNI8XRAvu1c1Iv60eerI\nkE82Rsd5lwUaMEh+/HoL8ztFCZamVndoNgX7HWp5J/NRZZMmh4g="
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
# we can only frontend tests from the ether/ organization and not from forks.
|
# 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/
|
# To request tests to be run ask a maintainer to fork your repo to ether/
|
||||||
- if: fork = false
|
- if: fork = false
|
||||||
name: "Test the Frontend without Plugins"
|
name: "Test SSL"
|
||||||
install:
|
install:
|
||||||
#FIXME
|
- "openssl req -x509 -newkey rsa:4096 -keyout key.pem -out cert.pem -days 1 -nodes -subj '/CN=localhost'"
|
||||||
- "sed 's/\"loglevel\": \"INFO\",/\"loglevel\": \"WARN\",/g' settings.json.template > settings.json"
|
- "./bin/installDeps.sh"
|
||||||
- "tests/frontend/travis/sauce_tunnel.sh"
|
- "echo '{\"ssl\":{\"key\":\"key.pem\",\"cert\":\"cert.pem\"}}' >settings.json"
|
||||||
- "bin/installDeps.sh"
|
- "node src/node/server.js&"
|
||||||
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
|
|
||||||
script:
|
script:
|
||||||
- "tests/frontend/travis/runner.sh"
|
- "wget --no-check-certificate https://localhost:9001/p/test"
|
||||||
- name: "Run the Backend tests without Plugins"
|
|
||||||
install:
|
|
||||||
- "bin/installDeps.sh"
|
|
||||||
- "cd src && npm install && cd -"
|
|
||||||
script:
|
|
||||||
- "tests/frontend/travis/runnerBackend.sh"
|
|
||||||
## 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"
|
|
||||||
- name: "Load test Etherpad without Plugins"
|
|
||||||
install:
|
|
||||||
- "bin/installDeps.sh"
|
|
||||||
- "cd src && npm install && cd -"
|
|
||||||
- "npm install -g etherpad-load-test"
|
|
||||||
script:
|
|
||||||
- "tests/frontend/travis/runnerLoadTest.sh"
|
|
||||||
# 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 Plugins only"
|
|
||||||
install:
|
|
||||||
#FIXME
|
|
||||||
- "sed 's/\"loglevel\": \"INFO\",/\"loglevel\": \"WARN\",/g' settings.json.template > settings.json"
|
|
||||||
- "tests/frontend/travis/sauce_tunnel.sh"
|
|
||||||
- "bin/installDeps.sh"
|
|
||||||
- "rm tests/frontend/specs/*"
|
|
||||||
- "npm install ep_hash_auth ep_cursortrace ep_subscript_and_superscript ep_headings2 ep_author_hover ep_align ep_webrtc ep_table_of_contents ep_font_size ep_markdown ep_spellcheck"
|
|
||||||
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
|
|
||||||
script:
|
|
||||||
- "tests/frontend/travis/runner.sh"
|
|
||||||
- name: "Run the Backend tests with Plugins"
|
|
||||||
install:
|
|
||||||
- "bin/installDeps.sh"
|
|
||||||
- "npm install ep_hash_auth ep_cursortrace ep_subscript_and_superscript ep_headings2 ep_author_hover ep_align ep_webrtc ep_table_of_contents ep_font_size ep_markdown ep_spellcheck"
|
|
||||||
- "cd src && npm install && cd -"
|
|
||||||
script:
|
|
||||||
- "tests/frontend/travis/runnerBackend.sh"
|
|
||||||
## 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"
|
|
||||||
- name: "Load test Etherpad with Plugins"
|
|
||||||
install:
|
|
||||||
- "bin/installDeps.sh"
|
|
||||||
- "npm install ep_hash_auth ep_cursortrace ep_subscript_and_superscript ep_headings2 ep_comments_page ep_author_hover ep_align ep_webrtc ep_table_of_contents ep_font_size ep_markdown ep_spellcheck"
|
|
||||||
- "cd src && npm install && cd -"
|
|
||||||
- "npm install -g etherpad-load-test"
|
|
||||||
script:
|
|
||||||
- "tests/frontend/travis/runnerLoadTest.sh"
|
|
||||||
|
|
||||||
notifications:
|
|
||||||
irc:
|
|
||||||
channels:
|
|
||||||
- "irc.freenode.org#etherpad-lite-dev"
|
|
||||||
|
|
Loading…
Reference in New Issue