Enable hitch tests to be run in Travis CI.

This commit is contained in:
Colm O'Connor 2015-08-04 23:39:27 +08:00
parent 18b1843481
commit 3f2484d75c
3 changed files with 20 additions and 3 deletions

View File

@ -0,0 +1,16 @@
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq build-essential gettext python-dev zlib1g-dev libpq-dev xvfb
- sudo apt-get install -qq libtiff4-dev libjpeg8-dev libfreetype6-dev liblcms1-dev libwebp-dev
- sudo apt-get install -qq graphviz-dev python-setuptools python3-dev python-virtualenv python-pip
- sudo apt-get install -qq firefox automake libtool libreadline6 libreadline6-dev libreadline-dev
- sudo apt-get install -qq libsqlite3-dev libxml2 libxml2-dev libssl-dev libbz2-dev wget curl llvm
language: python
python:
- "3.4"
install:
- "pip install hitch"
- "cd tests"
- "hitch init"
script:
- "hitch test . --extra '{\"xvfb\":true, \"pause_on_failure\":false}'"

View File

@ -80,7 +80,8 @@ class ExecutionEngine(hitchtest.ExecutionEngine):
)
{% endif %}
self.services['Firefox'] = hitchselenium.SeleniumService(
xvfb=self.settings.get("quiet", False)
xvfb=self.settings.get("quiet", False),
no_libfaketime=True,
)
# import hitchcron

View File

@ -6,9 +6,9 @@ hitchpostgres==0.6.1
hitchpython==0.2
hitchredis==0.4.1
hitchselenium==0.3.1
hitchserve==0.4.1
hitchserve==0.4.2
hitchsmtp==0.2.1
hitchtest==0.6.8
hitchtest==0.7
humanize==0.5.1
ipython==3.1.0
Jinja2==2.7.3