From abdf7857230ba2be1d66c88f0a67f13228903fda Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 12 Mar 2018 18:06:13 +0000 Subject: [PATCH 1/4] Bump chrome and chromedriver --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8cc8f95c..b2527c43 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,10 +4,10 @@ python: cache: pip addons: - chrome: beta + chrome: stable install: - - wget http://chromedriver.storage.googleapis.com/2.32/chromedriver_linux64.zip + - wget https://chromedriver.storage.googleapis.com/2.36/chromedriver_linux64.zip - unzip chromedriver_linux64.zip - export PATH=$PATH:$(pwd) - chmod +x chromedriver From 7f3d628d017a13fc14f8256a684deaa4462ac0b2 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 12 Mar 2018 18:06:49 +0000 Subject: [PATCH 2/4] Bump selenium --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 1d992393..604dac87 100644 --- a/requirements.txt +++ b/requirements.txt @@ -24,7 +24,7 @@ python-dateutil==2.6.1 pytz==2017.3 raven==6.3.0 reportlab==3.4.0 -selenium==3.7.0 +selenium==3.11.0 simplejson==3.13.2 six==1.11.0 sqlparse==0.2.4 From a26e65073c3346d1db6b5e343c4538bd4ff2f21c Mon Sep 17 00:00:00 2001 From: David Taylor Date: Sat, 24 Mar 2018 22:19:10 +0000 Subject: [PATCH 3/4] Add no sandbox flag See https://github.com/travis-ci/docs-travis-ci-com/pull/1671 for more info --- RIGS/test_functional.py | 1 + 1 file changed, 1 insertion(+) diff --git a/RIGS/test_functional.py b/RIGS/test_functional.py index eab954fd..85ffbd4c 100644 --- a/RIGS/test_functional.py +++ b/RIGS/test_functional.py @@ -32,6 +32,7 @@ def create_browser(): options.add_argument("--window-size=1920,1080") if os.environ.get('CI', False): options.add_argument("--headless") + options.add_argument("--no-sandbox") driver = webdriver.Chrome(chrome_options=options) return driver From ad3b38d222eec6305b12b54746198ae53cf46e59 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Sat, 24 Mar 2018 23:45:43 +0000 Subject: [PATCH 4/4] Use new RECAPTCHA testing keys --- PyRIGS/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PyRIGS/settings.py b/PyRIGS/settings.py index d030c164..ab9a5d66 100644 --- a/PyRIGS/settings.py +++ b/PyRIGS/settings.py @@ -162,8 +162,8 @@ LOGOUT_URL = '/user/logout/' ACCOUNT_ACTIVATION_DAYS = 7 # reCAPTCHA settings -RECAPTCHA_PUBLIC_KEY = os.environ.get('RECAPTCHA_PUBLIC_KEY', None) -RECAPTCHA_PRIVATE_KEY = os.environ.get('RECAPTCHA_PRIVATE_KEY', None) +RECAPTCHA_PUBLIC_KEY = os.environ.get('RECAPTCHA_PUBLIC_KEY', "6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI") # If not set, use development key +RECAPTCHA_PRIVATE_KEY = os.environ.get('RECAPTCHA_PRIVATE_KEY', "6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe") # If not set, use development key NOCAPTCHA = True # Email