Removed official Jython 2.5.3 support in favour of less complex Travis CI build. Fix other travis ci issues.
parent
9c8ddf47f7
commit
f294a78664
|
|
@ -28,12 +28,8 @@ matrix:
|
|||
include:
|
||||
- python: 2.7
|
||||
env: TESTNAME=test_integration.SqlitePyTest
|
||||
- python: 2.7
|
||||
env: JYTHON=org.python:jython-installer:2.5.3 TESTNAME=test_integration.HsqldbTest JDBC_DRIVER=org.hsqldb:hsqldb:1.8.0.10
|
||||
- python: 2.7
|
||||
env: JYTHON=org.python:jython-installer:2.7-rc1 TESTNAME=test_integration.HsqldbTest JDBC_DRIVER=org.hsqldb:hsqldb:1.8.0.10
|
||||
- python: 2.7
|
||||
env: JYTHON=org.python:jython-installer:2.5.3 TESTNAME=test_mock JDBC_DRIVER=org.jaydebeapi:mockdriver:1.0-SNAPSHOT
|
||||
- python: 2.7
|
||||
env: JYTHON=org.python:jython-installer:2.7-rc1 TESTNAME=test_mock JDBC_DRIVER=org.jaydebeapi:mockdriver:1.0-SNAPSHOT
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
.. image:: https://img.shields.io/badge/python-2.6,_2.7,_3.4-blue.svg
|
||||
:target: https://pypi.python.org/pypi/JayDeBeApi
|
||||
|
||||
.. image:: https://img.shields.io/badge/jython-2.5.3,_2.7--rc1-blue.svg
|
||||
.. image:: https://img.shields.io/badge/jython-2.7--rc1-blue.svg
|
||||
:target: https://pypi.python.org/pypi/JayDeBeApi
|
||||
|
||||
.. image:: https://pypip.in/version/JayDeBeApi/badge.svg
|
||||
|
|
@ -58,7 +58,7 @@ or if you are using Jython use ::
|
|||
|
||||
$ jython setup.py install
|
||||
|
||||
It has been tested with Jython 2.5.3 an 2.7-b3.
|
||||
It has been tested with Jython 2.7-rc1.
|
||||
|
||||
If you are using cPython ensure that you have installed JPype_
|
||||
properly. It has been tested with JPype1 0.5.7. Older JPype
|
||||
|
|
|
|||
|
|
@ -4,29 +4,8 @@ set -e
|
|||
JYTHON_JAR=$(${TRAVIS_BUILD_DIR}/ci/mvnget.sh $JYTHON)
|
||||
java -jar ${JYTHON_JAR} -s -d $HOME/jython
|
||||
|
||||
BEFORE_PY_26=$($HOME/jython/bin/jython -c "import sys; print sys.version_info < (2, 6)")
|
||||
if [ "$BEFORE_PY_26" == "True" ]
|
||||
then
|
||||
curl http://peak.telecommunity.com/dist/ez_setup.py -o ez_setup.py
|
||||
$HOME/jython/bin/jython ez_setup.py
|
||||
# Install the latest pip compatible with Jython 2.5.3
|
||||
$HOME/jython/bin/easy_install pip==1.2.1
|
||||
else
|
||||
$HOME/jython/bin/jython -m ensurepip
|
||||
fi
|
||||
|
||||
# Install the latest virtualenv compatible with Jython
|
||||
$HOME/jython/bin/pip install virtualenv==1.9.1
|
||||
$HOME/jython/bin/virtualenv $HOME/myvirtualenv
|
||||
|
||||
if [ "$BEFORE_PY_26" == "True" ]
|
||||
then
|
||||
# No SSL support for Jython
|
||||
cat > $HOME/myvirtualenv/pip.conf <<EOF
|
||||
[install]
|
||||
insecure = true
|
||||
EOF
|
||||
cat <<EOF >> $HOME/myvirtualenv/bin/activate
|
||||
export PIP_CONFIG_FILE=$HOME/myvirtualenv/pip.conf
|
||||
EOF
|
||||
fi
|
||||
|
|
|
|||
|
|
@ -1,2 +1 @@
|
|||
JPype1==0.6.0
|
||||
unittest2==0.5.1
|
||||
|
|
|
|||
|
|
@ -23,7 +23,10 @@ import os
|
|||
import sys
|
||||
import threading
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
_THIS_DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,10 @@
|
|||
|
||||
import jaydebeapi
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
class MockTest(unittest.TestCase):
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,10 @@
|
|||
from optparse import OptionParser
|
||||
import sys
|
||||
|
||||
try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
|
||||
def main():
|
||||
parser = OptionParser()
|
||||
|
|
|
|||
Loading…
Reference in New Issue