forked from ome/openmicroscopy
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ome#941 from joshmoore/travis-yml2-develop
.travis.yml (take 2) and test fixes
- Loading branch information
Showing
24 changed files
with
174 additions
and
561 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,17 @@ | ||
language: java | ||
|
||
jdk: | ||
- openjdk7 | ||
|
||
before_install: | ||
- sudo apt-get -qq update | ||
- sudo apt-get install -qq git | ||
- sudo apt-get install -qq zeroc-ice34 | ||
- sudo apt-get install -qq python-imaging python-numpy python-tables | ||
|
||
install: python build.py build-all test-compile-all | ||
|
||
# Running python tests as script, since there's no compile step. | ||
script: | ||
- python build.py -py test -Dtest.with.fail=true | ||
- python build.py -cpp test -Dtest.with.fail=true |
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
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
# | ||
# Copyright (C) 2012 Glencoe Software, Inc. All Rights Reserved. | ||
# Use is subject to license terms supplied in LICENSE.txt | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License along | ||
# with this program; if not, write to the Free Software Foundation, Inc., | ||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | ||
|
||
""" | ||
OME Testing Methods | ||
""" | ||
|
||
import logging | ||
import unittest | ||
from omero_ext import xmlrunner | ||
|
||
class OmeTestLoader(object): | ||
|
||
def __init__(self, args): | ||
self.__args = args | ||
|
||
def loadTestsFromModule(self, *args): | ||
if hasattr(self, "already_called"): | ||
raise Exception("Already called") | ||
load = unittest.defaultTestLoader.loadTestsFromName | ||
suite = unittest.TestSuite() | ||
for arg in self.__args: | ||
suite.addTest(load(arg)) | ||
self.already_called = True | ||
return suite | ||
|
||
def ome_test_main(args): | ||
logging.basicConfig(level=logging.WARN) | ||
unittest.main( | ||
testRunner=xmlrunner.XMLTestRunner(verbose=True, output='target/reports'), | ||
testLoader = OmeTestLoader(args)) |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.