.travis.yml: Factor out common plugin install command
parent
f6516d62ef
commit
6961e0e05b
52
.travis.yml
52
.travis.yml
|
@ -27,6 +27,19 @@ env:
|
||||||
- secure: "WMGxFkOeTTlhWB+ChMucRtIqVmMbwzYdNHuHQjKCcj8HBEPdZLfCuK/kf4rG\nVLcLQiIsyllqzNhBGVHG1nyqWr0/LTm8JRqSCDDVIhpyzp9KpCJQQJG2Uwjk\n6/HIJJh/wbxsEdLNV2crYU/EiVO3A4Bq0YTHUlbhUqG3mSCr5Ec="
|
- secure: "WMGxFkOeTTlhWB+ChMucRtIqVmMbwzYdNHuHQjKCcj8HBEPdZLfCuK/kf4rG\nVLcLQiIsyllqzNhBGVHG1nyqWr0/LTm8JRqSCDDVIhpyzp9KpCJQQJG2Uwjk\n6/HIJJh/wbxsEdLNV2crYU/EiVO3A4Bq0YTHUlbhUqG3mSCr5Ec="
|
||||||
- secure: "gejXUAHYscbR6Bodw35XexpToqWkv2ifeECsbeEmjaLkYzXmUUNWJGknKSu7\nEUsSfQV8w+hxApr1Z+jNqk9aX3K1I4btL3cwk2trnNI8XRAvu1c1Iv60eerI\nkE82Rsd5lwUaMEh+/HoL8ztFCZamVndoNgX7HWp5J/NRZZMmh4g="
|
- secure: "gejXUAHYscbR6Bodw35XexpToqWkv2ifeECsbeEmjaLkYzXmUUNWJGknKSu7\nEUsSfQV8w+hxApr1Z+jNqk9aX3K1I4btL3cwk2trnNI8XRAvu1c1Iv60eerI\nkE82Rsd5lwUaMEh+/HoL8ztFCZamVndoNgX7HWp5J/NRZZMmh4g="
|
||||||
|
|
||||||
|
_install_plugins: &install_plugins >-
|
||||||
|
npm install
|
||||||
|
ep_align
|
||||||
|
ep_author_hover
|
||||||
|
ep_cursortrace
|
||||||
|
ep_font_size
|
||||||
|
ep_hash_auth
|
||||||
|
ep_headings2
|
||||||
|
ep_markdown
|
||||||
|
ep_spellcheck
|
||||||
|
ep_subscript_and_superscript
|
||||||
|
ep_table_of_contents
|
||||||
|
|
||||||
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.
|
||||||
|
@ -71,18 +84,7 @@ jobs:
|
||||||
- "tests/frontend/travis/sauce_tunnel.sh"
|
- "tests/frontend/travis/sauce_tunnel.sh"
|
||||||
- "bin/installDeps.sh"
|
- "bin/installDeps.sh"
|
||||||
- "rm tests/frontend/specs/*"
|
- "rm tests/frontend/specs/*"
|
||||||
- >-
|
- *install_plugins
|
||||||
npm install
|
|
||||||
ep_align
|
|
||||||
ep_author_hover
|
|
||||||
ep_cursortrace
|
|
||||||
ep_font_size
|
|
||||||
ep_hash_auth
|
|
||||||
ep_headings2
|
|
||||||
ep_markdown
|
|
||||||
ep_spellcheck
|
|
||||||
ep_subscript_and_superscript
|
|
||||||
ep_table_of_contents
|
|
||||||
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
|
- "export GIT_HASH=$(git rev-parse --verify --short HEAD)"
|
||||||
script:
|
script:
|
||||||
- "tests/frontend/travis/runner.sh"
|
- "tests/frontend/travis/runner.sh"
|
||||||
|
@ -94,18 +96,7 @@ jobs:
|
||||||
- name: "Run the Backend tests with Plugins"
|
- name: "Run the Backend tests with Plugins"
|
||||||
install:
|
install:
|
||||||
- "bin/installDeps.sh"
|
- "bin/installDeps.sh"
|
||||||
- >-
|
- *install_plugins
|
||||||
npm install
|
|
||||||
ep_align
|
|
||||||
ep_author_hover
|
|
||||||
ep_cursortrace
|
|
||||||
ep_font_size
|
|
||||||
ep_hash_auth
|
|
||||||
ep_headings2
|
|
||||||
ep_markdown
|
|
||||||
ep_spellcheck
|
|
||||||
ep_subscript_and_superscript
|
|
||||||
ep_table_of_contents
|
|
||||||
- "cd src && npm install && cd -"
|
- "cd src && npm install && cd -"
|
||||||
script:
|
script:
|
||||||
- "tests/frontend/travis/runnerBackend.sh"
|
- "tests/frontend/travis/runnerBackend.sh"
|
||||||
|
@ -119,18 +110,7 @@ jobs:
|
||||||
- name: "Load test Etherpad with Plugins"
|
- name: "Load test Etherpad with Plugins"
|
||||||
install:
|
install:
|
||||||
- "bin/installDeps.sh"
|
- "bin/installDeps.sh"
|
||||||
- >-
|
- *install_plugins
|
||||||
npm install
|
|
||||||
ep_align
|
|
||||||
ep_author_hover
|
|
||||||
ep_cursortrace
|
|
||||||
ep_font_size
|
|
||||||
ep_hash_auth
|
|
||||||
ep_headings2
|
|
||||||
ep_markdown
|
|
||||||
ep_spellcheck
|
|
||||||
ep_subscript_and_superscript
|
|
||||||
ep_table_of_contents
|
|
||||||
- "cd src && npm install && cd -"
|
- "cd src && npm install && cd -"
|
||||||
- "npm install -g etherpad-load-test"
|
- "npm install -g etherpad-load-test"
|
||||||
script:
|
script:
|
||||||
|
|
Loading…
Reference in New Issue