1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-14 15:53:28 +01:00
pywb/.travis.yml

53 lines
661 B
YAML
Raw Normal View History

2014-01-23 16:20:51 -08:00
language: python
2014-08-06 14:01:59 -07:00
2014-01-23 16:20:51 -08:00
python:
2014-03-04 18:49:36 -08:00
- "2.7"
- "3.5"
2017-03-09 11:59:54 -08:00
- "3.6"
- "3.7"
- "3.8"
2014-08-06 14:01:59 -07:00
dist: xenial
addons:
chrome: stable
Refactor of auto-fetch worker system with support for proxy mode, fixes https://github.com/webrecorder/pywb/issues/371: (#379) - Split wombat and auto-fetch worker into two files (proxy mode and non-proxy mode) - Renamed preservationWorker to autoFetchWorker in order to better convey what it does - Root config file control over including wombat and auto-fetch worker in proxy or non-proxy mode - Added additional proxy mode + auto-fetch worker only route for fetching the auto-fetch worker code nicely for CORS - templateview: add 'tobool' formatter to more cleanly format python bools to JS 'true'/'false' - proxy options: config and command line: 'use_auto_fetch_worker' and '--proxy-with-auto-fetch' 'use_wombat' and '--proxy-with-wombat' - head_insert.html: only include wombat in proxy mode when use_wombat or use_auto_fetch_worker are set. - wombatProxyMode.js: slimmed down wombat for proxy mode only including auto-fetch support. - more consistent naming: rename 'preserveWorker' and 'autoArchive' to 'auto-fetch' Updated tests: - test_wbrequestresponse.py: added tests covering constructor defaults, _init_derived, options_response, json_response, encode_stream, text_stream - test_auto_colls.py: fixed broken test test_more_custom_templates, reason using ujson now not json so spacing was off - test_proxy.py: updated existing tests to reflect splitting wombat into proxy and non-proxy mode, added tests covering auto-fetch worker specific endpoints in proxy mode removed duplicate addons key in .travis.yml - test_cli.py: updated to properly test the cli with these changes added ultrajon dep to tests_require in setup.py to reflect its usage by wbrequestresponse.py Fully documented: - cli.py - frontendapp.py - templateview.py - wbrequestresponse.py Removed duplicate addons key in .travis.yml Added ultrajson dependency to tests_require in setup.py to reflect its usage by wbrequestresponse.py Fixes #371
2018-10-03 16:27:49 -04:00
sauce_connect: true
env:
- WR_TEST=no
- WR_TEST=yes
services: xvfb
cache:
directories:
- node_modules
sudo: required
2014-01-23 16:20:51 -08:00
install:
- ./.travis/install.sh
2014-08-06 14:01:59 -07:00
before_install:
- 'if [ "$WR_TEST" = "yes" ]; then sudo sysctl kernel.unprivileged_userns_clone=1; fi'
script:
- ./.travis/test.sh
2014-02-24 23:43:32 -08:00
after_success:
- codecov
matrix:
allow_failures:
- env: WR_TEST=yes
- python: "2.7"
exclude:
- env: WR_TEST=yes
python: "2.7"
- env: WR_TEST=yes
python: "3.5"
- env: WR_TEST=yes
python: "3.7"