2017-10-19 10:54:47 -07:00
|
|
|
sudo: required
|
2019-03-21 12:15:39 -07:00
|
|
|
dist: xenial
|
2013-12-04 17:34:23 -08:00
|
|
|
language: python
|
2015-10-30 23:07:01 +00:00
|
|
|
python:
|
2019-03-21 12:15:39 -07:00
|
|
|
- 3.7
|
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
|
2019-03-21 12:25:51 -07:00
|
|
|
- pypy3.5
|
2016-10-19 18:23:01 -07:00
|
|
|
- nightly
|
2016-07-11 11:23:53 -05:00
|
|
|
|
|
|
|
matrix:
|
|
|
|
allow_failures:
|
2016-10-19 18:23:01 -07:00
|
|
|
- python: nightly
|
2017-12-21 15:45:39 -08:00
|
|
|
- python: 2.7
|
|
|
|
- python: pypy
|
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
|
2017-10-18 15:21:53 -07:00
|
|
|
- docker network create --driver=bridge trough
|
2017-10-19 10:44:53 -07:00
|
|
|
- docker run --detach --network=trough --hostname=rethinkdb --name=rethinkdb --publish=28015:28015 rethinkdb
|
|
|
|
- docker run --detach --network=trough --hostname=hadoop --name=hadoop chalimartines/cdh5-pseudo-distributed
|
2018-07-18 16:09:42 -05:00
|
|
|
- docker run --detach --network=trough --hostname=trough --name=trough --volume="$PWD/tests/run-trough.sh:/run-trough.sh" --publish=6111:6111 --publish=6112:6112 --publish=6222:6222 --publish=6444:6444 python:3.6 bash /run-trough.sh
|
2017-10-19 11:10:58 -07:00
|
|
|
- cat /etc/hosts
|
|
|
|
- echo | sudo tee -a /etc/hosts # travis-ci default doesn't end with a newline 🙄
|
2017-10-19 10:54:47 -07:00
|
|
|
- echo 127.0.0.1 rethinkdb | sudo tee -a /etc/hosts
|
|
|
|
- echo 127.0.0.1 hadoop | sudo tee -a /etc/hosts
|
|
|
|
- echo 127.0.0.1 trough | sudo tee -a /etc/hosts
|
|
|
|
- cat /etc/hosts
|
2017-10-19 10:20:51 -07:00
|
|
|
- ping -c2 trough
|
2017-10-13 16:26:33 -07:00
|
|
|
|
|
|
|
install:
|
2017-11-13 15:07:47 -08:00
|
|
|
- pip install . pytest requests warcio mock
|
2015-11-02 22:21:43 +00:00
|
|
|
|
2014-01-07 14:10:39 -08:00
|
|
|
before_script:
|
2018-07-18 16:09:42 -05:00
|
|
|
- docker exec trough bash -c 'while ! test -e /tmp/trough-read.out ; do sleep 0.5 ; done' || true
|
|
|
|
- docker logs --timestamps --details trough
|
2017-10-13 16:52:08 -07:00
|
|
|
- ps ww -fHe
|
2018-07-18 16:09:42 -05:00
|
|
|
- docker ps
|
2014-01-07 14:00:46 -08:00
|
|
|
|
2015-11-02 22:21:43 +00:00
|
|
|
script:
|
2018-08-20 12:07:23 -07:00
|
|
|
- py.test -v --tb=native tests
|
|
|
|
- py.test -v --tb=native --rethinkdb-dedup-url=rethinkdb://localhost/test1/dedup tests
|
|
|
|
- py.test -v --tb=native --rethinkdb-big-table-url=rethinkdb://localhost/test2/captures tests
|
|
|
|
- py.test -v --tb=native --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-18 17:38:27 -07:00
|
|
|
- docker exec trough cat /tmp/trough-write.out
|
2018-07-18 16:09:42 -05:00
|
|
|
- docker exec trough cat /tmp/trough-segment-manager-server.out
|
|
|
|
- docker exec trough cat /tmp/trough-segment-manager-local.out
|
2017-10-18 17:38:27 -07:00
|
|
|
- docker exec trough cat /tmp/trough-sync-server.out
|
|
|
|
- docker exec trough cat /tmp/trough-sync-local.out
|
|
|
|
- docker exec trough 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=
|