2017-06-23 14:12:04 -07:00
|
|
|
group: deprecated-2017Q2
|
|
|
|
|
2013-12-04 17:34:23 -08:00
|
|
|
language: python
|
2015-10-30 23:07:01 +00:00
|
|
|
python:
|
2017-01-23 13:53:01 -08:00
|
|
|
- 3.6
|
2016-07-11 11:23:53 -05:00
|
|
|
- 3.5
|
|
|
|
- 3.4
|
|
|
|
- 2.7
|
|
|
|
- pypy
|
|
|
|
- pypy3
|
2017-01-23 13:53:01 -08:00
|
|
|
- 3.7-dev
|
2016-10-19 18:23:01 -07:00
|
|
|
- nightly
|
2016-07-11 11:23:53 -05:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
|
|
|
- python: pypy3
|
2016-10-19 18:23:01 -07:00
|
|
|
- python: nightly
|
2017-01-23 13:53:01 -08:00
|
|
|
- python: 3.7-dev
|
2014-01-07 12:04:52 -08:00
|
|
|
|
2015-10-30 23:07:01 +00:00
|
|
|
addons:
|
2016-07-11 11:23:53 -05:00
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- tor
|
2014-01-07 12:04:52 -08:00
|
|
|
|
2015-11-02 22:26:02 +00:00
|
|
|
services:
|
2016-07-11 11:23:53 -05:00
|
|
|
- docker
|
2015-11-02 22:26:02 +00:00
|
|
|
|
2015-11-02 22:21:43 +00:00
|
|
|
before_install:
|
2016-07-11 11:23:53 -05:00
|
|
|
- sudo service docker restart ; sleep 10 # https://github.com/travis-ci/travis-ci/issues/4778
|
|
|
|
- docker run -d --publish=28015:28015 rethinkdb
|
2017-10-13 16:26:33 -07:00
|
|
|
- docker run -d --publish=8020:8020 --publish=50070:50070 --publish=50010:50010 --publish=50020:50020 --publish=50075:50075 chalimartines/cdh5-pseudo-distributed
|
|
|
|
- virtualenv -p python3 /opt/trough-ve3
|
|
|
|
- . /opt/trough-ve3/bin/activate
|
|
|
|
- pip install git+https://github.com/jkafader/snakebite@feature/python3-version-string
|
|
|
|
- pip install git+https://github.com/nlevitt/trough.git@toward-warcprox-dedup
|
|
|
|
- 'sync.py >>/tmp/trough-sync-local.out 2>&1 &'
|
2017-10-13 16:40:08 -07:00
|
|
|
- sleep 5
|
|
|
|
- python -c "import doublethink ; from trough.settings import settings ; rr = doublethink.Rethinker(settings['RETHINKDB_HOSTS']) ; rr.db('trough_configuration').wait().run()"
|
2017-10-13 16:26:33 -07:00
|
|
|
- 'sync.py --server >>/tmp/trough-sync-server.out 2>&1 &'
|
|
|
|
- 'uwsgi --venv=/opt/trough-ve3 --http :6222 --master --processes=2 --harakiri=240 --max-requests=50000 --vacuum --die-on-term --wsgi-file /opt/trough-ve3/bin/writer.py >>/tmp/trough-write.out 2>&1 &'
|
|
|
|
- 'uwsgi --venv=/opt/trough-ve3 --http :6112 --master --processes=2 --harakiri=20 --max-requests=50000 --vacuum --die-on-term --wsgi-file /opt/trough-ve3/bin/write_provisioner_local.py >>/tmp/trough-write-provisioner-local.out 2>&1 &'
|
|
|
|
- 'uwsgi --venv=/opt/trough-ve3 --http :6111 --master --processes=2 --harakiri=20 --max-requests=50000 --vacuum --die-on-term --wsgi-file /opt/trough-ve3/bin/write_provisioner_server.py >>/tmp/trough-write-provisioner-server.out 2>&1 &'
|
2017-10-17 14:58:46 -07:00
|
|
|
- 'uwsgi --venv=/opt/trough-ve3 --http :6444 --master --processes=2 --harakiri=3200 --socket-timeout=3200 --max-requests=50000 --vacuum --die-on-term --wsgi-file /opt/trough-ve3/bin/reader.py >>/tmp/trough-read.out 2>&1 &'
|
2017-10-18 09:45:06 -07:00
|
|
|
- deactivate
|
2017-10-13 16:26:33 -07:00
|
|
|
|
|
|
|
install:
|
|
|
|
- pip install . pytest requests warcio
|
2015-11-02 22:21:43 +00:00
|
|
|
|
2014-01-07 14:10:39 -08:00
|
|
|
before_script:
|
2017-10-13 16:52:08 -07:00
|
|
|
- ps ww -fHe
|
2014-01-07 14:00:46 -08:00
|
|
|
|
2015-11-02 22:21:43 +00:00
|
|
|
script:
|
2017-04-28 11:07:33 -07:00
|
|
|
- py.test -v tests
|
2017-10-11 12:06:19 -07:00
|
|
|
- py.test -v --rethinkdb-dedup-url=rethinkdb://localhost/test1/dedup tests
|
|
|
|
- py.test -v --rethinkdb-big-table-url=rethinkdb://localhost/test2/captures tests
|
2017-10-13 15:54:05 -07:00
|
|
|
- py.test -v --rethinkdb-trough-db-url=rethinkdb://localhost/trough_configuration tests
|
2013-12-04 17:34:23 -08:00
|
|
|
|
2017-10-13 16:26:33 -07:00
|
|
|
after_script:
|
2017-10-18 09:45:06 -07:00
|
|
|
- ps ww -fHe
|
2017-10-17 14:33:36 -07:00
|
|
|
- cat /tmp/trough-write.out
|
|
|
|
- cat /tmp/trough-write-provisioner-server.out
|
|
|
|
- cat /tmp/trough-write-provisioner-local.out
|
|
|
|
- cat /tmp/trough-sync-server.out
|
|
|
|
- cat /tmp/trough-sync-local.out
|
|
|
|
- cat /tmp/trough-read.out
|
2017-10-13 16:26:33 -07:00
|
|
|
|
2017-01-16 12:26:45 -08:00
|
|
|
notifications:
|
|
|
|
slack:
|
|
|
|
secure: UJzNe+kEJ8QhNxrdqObroisJAO2ipr+Sr2+u1e2euQdIkacyX+nZ88jSk6uDKniAemSfFDI8Ty5a7++2wSbE//Hr3jOSNOJMZLzockafzvIYrq9bP7V97j1gQ4u7liWd19VBnbf0pULuwEfy/n5PdOBR/TiPrgMuYjfZseV+alo=
|
|
|
|
secure: S1SK52178uywcWLMO4S5POdjMv1MQjR061CKprjVn2d8x5RBbg8QZtumA6Xt+pByvJzh8vk+ITHCN57tcdi51yL6Z0QauXwxwzTsZmjrhxWOybAO2uOHliqQSDgxKcbXIqJKg7Yv19eLQYWDVJVGuwlMfVBS0hOHtTTpVuLuGuc=
|