Use PhantomJS instead of SauceLabs for CI testing

This commit is contained in:
Raphael Michel
2015-01-15 09:32:18 +01:00
parent a144d4ccfe
commit 24beedd232
4 changed files with 16 additions and 14 deletions

View File

@@ -7,10 +7,17 @@ from django.conf import settings
from selenium import webdriver
RUN_LOCAL = ('SAUCE_USERNAME' not in os.environ)
"""
For a long time, we used SauceLabs for CI testing, because they provide free
browser VMs for Open Source projects. However, more tests failed because of
connection timeouts to SauceLabs than for real reasons, so we're using
PhantomJS now. However, we'll keep the SauceClient code here as it might prove
useful some day.
"""
if RUN_LOCAL:
# could add Chrome, PhantomJS etc... here
BROWSERS = ['Chrome', 'Firefox']
# could add Chrome, Firefox, etc... here
BROWSERS = ['PhantomJS']
else:
from sauceclient import SauceClient
USERNAME = os.environ.get('SAUCE_USERNAME')