Add python 3.7. Use general shebangs in scripts to test with python3;

Use 2.7_with_system_site_packages for python2 to run qt tests
as suggested in Travis doc instead of bypassing virtualenv by shebang.
This commit is contained in:
Dmitri Bogomolov 2020-01-28 11:31:31 +02:00
parent 574b60ed0e
commit 6029ec85b6
Signed by untrusted user: g1itch
GPG Key ID: 720A756F18DEED13
4 changed files with 7 additions and 5 deletions

View File

@ -1,6 +1,9 @@
language: python language: python
cache: pip
dist: bionic
python: python:
- "2.7" - "2.7_with_system_site_packages"
- "3.7"
addons: addons:
apt: apt:
packages: packages:
@ -11,7 +14,6 @@ addons:
- xvfb - xvfb
install: install:
- pip install -r requirements.txt - pip install -r requirements.txt
- ln -s src pybitmessage # tests environment
- python setup.py install - python setup.py install
script: script:
- python checkdeps.py - python checkdeps.py

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python2 #!/usr/bin/env python
""" """
Check dependencies and give recommendations about how to satisfy them Check dependencies and give recommendations about how to satisfy them

View File

@ -1,4 +1,4 @@
#!/usr/bin/python2.7 #!/usr/bin/env python
""" """
The PyBitmessage startup script The PyBitmessage startup script
""" """

View File

@ -18,7 +18,7 @@ from common import cleanup
def put_signal_file(path, filename): def put_signal_file(path, filename):
"""Creates file, presence of which is a signal about some event.""" """Creates file, presence of which is a signal about some event."""
with open(os.path.join(path, filename), 'wb') as outfile: with open(os.path.join(path, filename), 'wb') as outfile:
outfile.write(str(time.time())) outfile.write(b'%i' % time.time())
class TestProcessProto(unittest.TestCase): class TestProcessProto(unittest.TestCase):