[Jython-checkins] jython: Add regrtest-travis that fails the build if regrtest fails (and uses -w option
darjus.loktevic
jython-checkins at python.org
Wed Dec 23 18:07:12 EST 2015
https://hg.python.org/jython/rev/6200e918dd75
changeset: 7840:6200e918dd75
user: Darjus Loktevic <darjus at gmail.com>
date: Thu Dec 24 10:07:39 2015 +1100
summary:
Add regrtest-travis that fails the build if regrtest fails (and uses -w option for better error reporting), and updated .travis.yml to email jython-dev@
files:
.travis.yml | 7 ++++++-
build.xml | 30 ++++++++++++++++++++++++++++++
2 files changed, 36 insertions(+), 1 deletions(-)
diff --git a/.travis.yml b/.travis.yml
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,10 @@
language: java
+notifications:
+ email:
+ recipients:
+ - jython-dev at lists.sourceforge.net
+
install: ant
os:
@@ -29,5 +34,5 @@
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ant; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then jdk_switcher use "$CUSTOM_JDK"; fi
-script: ant && ant regrtest
+script: ant && ant regrtest-travis
diff --git a/build.xml b/build.xml
--- a/build.xml
+++ b/build.xml
@@ -1095,6 +1095,36 @@
</exec>
</target>
+ <target name="regrtest-travis"
+ depends="developer-build,regrtest-unix-travis,regrtest-windows-travis"
+ description="run Python tests expected to work on Jython for Travis intergration"/>
+
+ <target name="regrtest-unix-travis" if="os.family.unix">
+ <exec executable="${dist.dir}/bin/jython" failonerror="true">
+ <env key="JAVA_OPTS" value="-Duser.language=en -Duser.region=US"/>
+ <arg value="${dist.dir}/Lib/test/regrtest.py"/>
+ <arg value="-w"/> <!-- re-run failed tests in verbose mode -->
+ <!-- Only run the tests that are expected to work on Jython -->
+ <arg value="--expected"/>
+ <arg value="-j"/>
+ <arg value="${junit.reports}"/>
+ <arg value="--use"/>
+ <arg value="network,subprocess"/>
+ </exec>
+ </target>
+
+ <target name="regrtest-windows-travis" if="os.family.windows">
+ <exec executable="${dist.dir}/bin/jython.exe" failonerror="true">
+ <arg value="-w"/> <!-- re-run failed tests in verbose mode -->
+ <!-- Only run the tests that are expected to work on Jython -->
+ <arg value="--expected"/>
+ <arg value="-j"/>
+ <arg value="${junit.reports}"/>
+ <arg value="--use"/>
+ <arg value="network,subprocess"/>
+ </exec>
+ </target>
+
<target name="regrtest-html-report" depends="init" description="generates HTML output out of regrtest JUnit XML">
<mkdir dir="${junit.htmlreports}/html"/>
<junitreport todir="${junit.htmlreports}">
--
Repository URL: https://hg.python.org/jython
More information about the Jython-checkins
mailing list