.travis-config.sh
author robin
Sun, 16 Feb 2020 12:33:49 +0000
changeset 80 32c32cb5ab93
parent 79 588c0cda1ad5
permissions -rw-r--r--
attempt to find 2.7 version of delocate
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
67
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
     1
# Define custom utilities
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
     2
#see https://github.com/python-pillow/pillow-wheels/blob/master/config.sh 
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
     3
function run_tests {
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
     4
	(
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
     5
	echo -n "+++++ python version:";python -c"import sys;print(sys.version.split()[0])"
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
     6
	echo -n "+++++ filesystemencoding:";python -c"import sys;print(sys.getfilesystemencoding())"
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
     7
	cd ../pyRXP/test
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
     8
	echo "===== in pyRXP/test pwd=`pwd`"
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
     9
	python testRXPbasic.py
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
    10
	[ ! -f 'xmltest.zip' ] && [ -x /opt/cp37m/bin/python3.7 ] && /opt/cp37m/bin/python3.7 -c"from urllib.request import urlretrieve;urlretrieve('https://www.reportlab.com/ftp/xmltest.zip','xmltest.zip')"
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
    11
	[ -f 'xmltest.zip' ] && python test_xmltestsuite.py || true	#force success
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
    12
	)
adcacca7dc69 add .travis stuff
robin
parents:
diff changeset
    13
	}
79
588c0cda1ad5 attempt to fix missing delocate-wheel issue
robin
parents: 67
diff changeset
    14
588c0cda1ad5 attempt to fix missing delocate-wheel issue
robin
parents: 67
diff changeset
    15
if [ -n "$IS_OSX" ]; then
588c0cda1ad5 attempt to fix missing delocate-wheel issue
robin
parents: 67
diff changeset
    16
	function repair_wheelhouse {
588c0cda1ad5 attempt to fix missing delocate-wheel issue
robin
parents: 67
diff changeset
    17
		local wheelhouse=$1
588c0cda1ad5 attempt to fix missing delocate-wheel issue
robin
parents: 67
diff changeset
    18
		install_delocate
80
32c32cb5ab93 attempt to find 2.7 version of delocate
robin
parents: 79
diff changeset
    19
		if [ -x $(dirname $PYTHON_EXE)/delocate-wheel ]; then
32c32cb5ab93 attempt to find 2.7 version of delocate
robin
parents: 79
diff changeset
    20
			$(dirname $PYTHON_EXE)/delocate-wheel $wheelhouse/*.whl # copies library dependencies into wheel
32c32cb5ab93 attempt to find 2.7 version of delocate
robin
parents: 79
diff changeset
    21
		else
32c32cb5ab93 attempt to find 2.7 version of delocate
robin
parents: 79
diff changeset
    22
			/Library/Frameworks/Python.framework/Versions/2.7/bin/delocate-wheel $wheelhouse/*.whl # copies library dependencies into wheel
32c32cb5ab93 attempt to find 2.7 version of delocate
robin
parents: 79
diff changeset
    23
		fi
79
588c0cda1ad5 attempt to fix missing delocate-wheel issue
robin
parents: 67
diff changeset
    24
	}
588c0cda1ad5 attempt to fix missing delocate-wheel issue
robin
parents: 67
diff changeset
    25
fi