Merge pull request #23 from internetarchive/travis

Travis
This commit is contained in:
Noah Levitt 2016-10-18 17:48:04 -07:00 committed by GitHub
commit 1490a40c28
6 changed files with 36 additions and 6 deletions

14
.travis.yml Normal file
View File

@ -0,0 +1,14 @@
language: python
python:
- 3.4
sudo: required
dist: trusty
before_install:
- sudo apt-add-repository -y ppa:ansible/ansible
- sudo apt-get -qq update
- sudo apt-get install -y ansible
install:
- ansible-playbook --extra-vars="brozzler_pip_name=file://$TRAVIS_BUILD_DIR#egg=brozzler user=travis" --inventory-file=ansible/hosts-localhost ansible/playbook.yml
- pip install $TRAVIS_BUILD_DIR pytest
script:
- py.test -v -s tests

16
ansible/hosts-localhost Normal file
View File

@ -0,0 +1,16 @@
localhost ansible_connection=local
[rethinkdb]
localhost
[warcprox]
localhost
[brozzler-worker]
localhost
[brozzler-webconsole]
localhost
[pywb]
localhost

View File

@ -7,7 +7,7 @@
pip: name='{{brozzler_pip_name}}[webconsole]'
virtualenv={{venv_root}}/brozzler-webconsole-ve34
virtualenv_python=python3.4
extra_args='--no-input --upgrade --pre'
extra_args='--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'
notify:

View File

@ -46,7 +46,7 @@
pip: name=git+https://github.com/kanaka/websockify.git#egg=websockify
virtualenv={{venv_root}}/websockify-ve34
virtualenv_python=python3.4
extra_args='--no-input --upgrade --pre'
extra_args='--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'
- name: install vnc-websock upstart config /etc/init/vnc-websock.conf
@ -62,7 +62,7 @@
name='{{brozzler_pip_name}}'
virtualenv={{venv_root}}/brozzler-ve34
virtualenv_python=python3.4
extra_args='--no-input --upgrade --pre'
extra_args='--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'
notify:

View File

@ -7,7 +7,7 @@
pip: name=pywb
virtualenv={{venv_root}}/pywb-ve34
virtualenv_python=python3.4
extra_args='--no-input --upgrade --pre'
extra_args='--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'
notify:
@ -16,7 +16,7 @@
pip: name='{{brozzler_pip_name}}'
virtualenv={{venv_root}}/pywb-ve34
virtualenv_python=python3.4
extra_args='--no-input --upgrade --pre'
extra_args='--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'
notify:

View File

@ -18,7 +18,7 @@
pip: name=git+https://github.com/internetarchive/warcprox.git@2.x#egg=warcprox
virtualenv={{venv_root}}/warcprox-ve34
virtualenv_python=python3.4
extra_args='--no-input --upgrade --pre'
extra_args='--no-input --upgrade --pre --cache-dir=/tmp/pip-cache'
become: true
become_user: '{{user}}'
notify: