-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable appveyor testing of cwltest (#72)
* enable appveyor testing of cwltest * decrease default timeout * include mock-cwl-runner in appveyor * always upload the test results * enable pip cache preservation * make tests windows compatible * add system python to path * add test for path normalization * Fix the bug proven by the new test * speed up appveyor builds by removing pip, virtualenv installs & drop py-32bit versions
- Loading branch information
Showing
6 changed files
with
173 additions
and
74 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,45 @@ | ||
version: .{build}-{branch} | ||
|
||
cache: | ||
- '%LOCALAPPDATA%\pip\Cache' | ||
|
||
environment: | ||
SYSTEMROOT: "C:\\WINDOWS" | ||
|
||
matrix: | ||
- PYTHON: "C:\\Python27-x64" | ||
PYTHON_VERSION: "2.7.x" | ||
PYTHON_ARCH: "64" | ||
|
||
- PYTHON: "C:\\Python34-x64" | ||
PYTHON_VERSION: "3.4.x" | ||
PYTHON_ARCH: "64" | ||
|
||
- PYTHON: "C:\\Python35-x64" | ||
PYTHON_VERSION: "3.5.x" | ||
PYTHON_ARCH: "64" | ||
|
||
- PYTHON: "C:\\Python36-x64" | ||
PYTHON_VERSION: "3.6.x" | ||
PYTHON_ARCH: "64" | ||
|
||
install: | ||
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%" | ||
|
||
build_script: | ||
- | | ||
%PYTHON%\\python.exe -m pip install -U wheel pytest pytest-xdist | ||
%PYTHON%\\python.exe -m pip install -e . | ||
test_script: | ||
- | | ||
%PYTHON%\\python.exe setup.py test --addopts "--verbose -p no:cacheprovider --junit-xml=tests.xml -n2" | ||
on_finish: | ||
- ps: | | ||
$wc = New-Object 'System.Net.WebClient' | ||
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($Env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests.xml)) | ||
branches: | ||
only: | ||
- master |
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,25 @@ | ||
import os | ||
import unittest | ||
from cwltest import prepare_test_command | ||
|
||
|
||
class TestPrepareCommand(unittest.TestCase): | ||
""" Test prepare_test_command() """ | ||
|
||
def test_unix_relative_path(self): | ||
""" Confirm unix style to windows style path corrections. """ | ||
command = prepare_test_command( | ||
tool='cwl-runner', | ||
args=[], | ||
testargs=None, | ||
test={'doc': 'General test of command line generation', | ||
'output': {'args': ['echo']}, | ||
'tool': 'v1.0/bwa-mem-tool.cwl', | ||
'job': 'v1.0/bwa-mem-job.json', | ||
'tags': ['required']}) | ||
if os.name == 'nt': | ||
self.assertEqual(command[3], 'v1.0\\bwa-mem-tool.cwl') | ||
self.assertEqual(command[4], 'v1.0\\bwa-mem-job.json') | ||
else: | ||
self.assertEqual(command[3], 'v1.0/bwa-mem-tool.cwl') | ||
self.assertEqual(command[4], 'v1.0/bwa-mem-job.json') |
Oops, something went wrong.