Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build config for travis-ci and appveyor.
Test failure will now cause non-zero return from setup.py. JAVA_HOME is used to find java in tests. Limit precision in jdbc testing.
- Loading branch information
1 parent
b63beb0
commit c604a67
Showing
5 changed files
with
64 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
language: python | ||
python: | ||
- 2.7 | ||
- 3.3 | ||
- 3.4 | ||
- 3.5 | ||
env: | ||
global: | ||
# Force error for earlier detection of python 2.7 windows build problems | ||
- CFLAGS="-Wdeclaration-after-statement -Werror=declaration-after-statement" | ||
matrix: | ||
- JAVA_HOME=/usr/lib/jvm/java-7-oracle | ||
- JAVA_HOME=/usr/lib/jvm/java-8-oracle | ||
addons: | ||
apt: | ||
packages: | ||
- oracle-java8-installer | ||
script: ./setup.py test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
environment: | ||
|
||
matrix: | ||
# TODO need to figure out why 32bit python 2.7 crashes in the tests. | ||
# - PYTHON: "C:\\Python27" | ||
# JAVA_HOME: "C:\\Program Files (x86)\\Java\\jdk1.6.0" | ||
- PYTHON: "C:\\Python33" | ||
JAVA_HOME: "C:\\Program Files (x86)\\Java\\jdk1.8.0" | ||
- PYTHON: "C:\\Python34" | ||
JAVA_HOME: "C:\\Program Files (x86)\\Java\\jdk1.8.0" | ||
- PYTHON: "C:\\Python35" | ||
JAVA_HOME: "C:\\Program Files (x86)\\Java\\jdk1.8.0" | ||
- PYTHON: "C:\\Python35" | ||
JAVA_HOME: "C:\\Program Files (x86)\\Java\\jdk1.7.0" | ||
- PYTHON: "C:\\Python27-x64" | ||
JAVA_HOME: "C:\\Program Files\\Java\\jdk1.8.0" | ||
- PYTHON: "C:\\Python35-x64" | ||
JAVA_HOME: "C:\\Program Files\\Java\\jdk1.8.0" | ||
- PYTHON: "C:\\Python35-x64" | ||
JAVA_HOME: "C:\\Program Files\\Java\\jdk1.7.0" | ||
# TODO there are more possible combinations that can be added | ||
|
||
build: off | ||
|
||
test_script: | ||
- "%PYTHON%\\python.exe setup.py test" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
import unittest | ||
import sys | ||
|
||
if __name__ == '__main__': | ||
tests = unittest.TestLoader().discover('tests') | ||
unittest.TextTestRunner().run(tests) | ||
result = unittest.TextTestRunner().run(tests) | ||
if not result.wasSuccessful(): | ||
sys.exit(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters