2015-10-26 17:16:26 +01:00
|
|
|
before_install:
|
2015-12-26 18:16:29 +01:00
|
|
|
- nvm install 0.10
|
2015-09-28 18:17:23 +02:00
|
|
|
install:
|
2015-10-15 01:47:42 +02:00
|
|
|
- tools/travis/setup-$TEST_SUITE
|
2015-10-14 15:59:35 +02:00
|
|
|
cache:
|
|
|
|
- apt: false
|
2015-12-26 18:16:29 +01:00
|
|
|
- directories:
|
|
|
|
- /srv/phantomjs
|
2015-10-15 01:47:42 +02:00
|
|
|
env:
|
|
|
|
- TEST_SUITE=frontend
|
|
|
|
- TEST_SUITE=backend
|
|
|
|
- TEST_SUITE=production
|
travis: Add Python 3 compatibility test.
This tests whether a new patch introduces any regressions related to
any of the Python 3 compatibility fixers we've run in the past, so
that we can make continuous forward progress on our path towards
Python 3 compatibility.
This produces error output that looks like this:
"""
Testing for additions of Python 2 patterns we've removed as part of moving towards Python 3 compatibility.
Running Python 3 compatibility test lib2to3.fixes.fix_apply
Running Python 3 compatibility test lib2to3.fixes.fix_except
diff --git a/zerver/views/__init__.py b/zerver/views/__init__.py
index b5c0102..2defd46 100644
--- a/zerver/views/__init__.py
+++ b/zerver/views/__init__.py
@@ -296,7 +296,7 @@ def accounts_register(request):
do_activate_user(user_profile)
do_change_password(user_profile, password)
do_change_full_name(user_profile, full_name)
- except UserProfile.DoesNotExist, e:
+ except UserProfile.DoesNotExist as e:
user_profile = do_create_user(email, password, realm, full_name, short_name,
prereg_user=prereg_user,
newsletter_data={"IP": request.META['REMOTE_ADDR']})
Python 3 compatibility error(s) detected! See diff above for what you need to change.
"""
2015-11-02 03:16:13 +01:00
|
|
|
- TEST_SUITE=py3k
|
2015-09-28 18:17:23 +02:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "2.7"
|
|
|
|
# command to run tests
|
|
|
|
script:
|
2015-10-15 01:47:42 +02:00
|
|
|
- ./tools/travis/$TEST_SUITE
|
2015-09-28 18:17:23 +02:00
|
|
|
sudo: required
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
addons:
|
|
|
|
postgresql: "9.3"
|