Skip to content

Commit

Permalink
Allow running tox on windows too.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Feb 15, 2015
1 parent f2dedb3 commit b1c1ac6
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 24 deletions.
2 changes: 1 addition & 1 deletion ci/templates/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ deps =
tox==1.8.1
commands =
{% for env, config in tox_environments|dictsort %}
{toxinidir}/ci/test.sh {{ env }}
{toxinidir}/ci/test.cmd {{ env }}
{% endfor %}
11 changes: 11 additions & 0 deletions ci/test.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash -eE
:<<"::batch"
@echo off
powershell -ExecutionPolicy ByPass -File ci\test.ps1 %*
goto :end
::batch
ci\test.sh $*
exit $?
:<<"::done"
:end
::done
2 changes: 1 addition & 1 deletion ci/test.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
param (
[string]$target
[string]$target=$(throw "Usage: {0} env-name" -f $MyInvocation.MyCommand.Name)
)
write-host "================================" -foregroundcolor "magenta"
write-host "================================ Testing: $target" -foregroundcolor "magenta"
Expand Down
44 changes: 22 additions & 22 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,25 @@ deps =
bumpversion==0.5.1
tox==1.8.1
commands =
{toxinidir}/ci/test.sh matrix
{toxinidir}/ci/test.sh matrix-cext
{toxinidir}/ci/test.sh matrix-cext-optional
{toxinidir}/ci/test.sh matrix-fnaccents
{toxinidir}/ci/test.sh matrix-fndoublequote
{toxinidir}/ci/test.sh matrix-fnquote
{toxinidir}/ci/test.sh matrix-fntriplequote
{toxinidir}/ci/test.sh matrix-pnaccents
{toxinidir}/ci/test.sh matrix-pndoublequote
{toxinidir}/ci/test.sh matrix-pnquote
{toxinidir}/ci/test.sh matrix-pntriplequote
{toxinidir}/ci/test.sh plain
{toxinidir}/ci/test.sh plain-cext
{toxinidir}/ci/test.sh plain-cext-optional
{toxinidir}/ci/test.sh plain-fnaccents
{toxinidir}/ci/test.sh plain-fndoublequote
{toxinidir}/ci/test.sh plain-fnquote
{toxinidir}/ci/test.sh plain-fntriplequote
{toxinidir}/ci/test.sh plain-pnaccents
{toxinidir}/ci/test.sh plain-pndoublequote
{toxinidir}/ci/test.sh plain-pnquote
{toxinidir}/ci/test.sh plain-pntriplequote
{toxinidir}/ci/test.cmd matrix
{toxinidir}/ci/test.cmd matrix-cext
{toxinidir}/ci/test.cmd matrix-cext-optional
{toxinidir}/ci/test.cmd matrix-fnaccents
{toxinidir}/ci/test.cmd matrix-fndoublequote
{toxinidir}/ci/test.cmd matrix-fnquote
{toxinidir}/ci/test.cmd matrix-fntriplequote
{toxinidir}/ci/test.cmd matrix-pnaccents
{toxinidir}/ci/test.cmd matrix-pndoublequote
{toxinidir}/ci/test.cmd matrix-pnquote
{toxinidir}/ci/test.cmd matrix-pntriplequote
{toxinidir}/ci/test.cmd plain
{toxinidir}/ci/test.cmd plain-cext
{toxinidir}/ci/test.cmd plain-cext-optional
{toxinidir}/ci/test.cmd plain-fnaccents
{toxinidir}/ci/test.cmd plain-fndoublequote
{toxinidir}/ci/test.cmd plain-fnquote
{toxinidir}/ci/test.cmd plain-fntriplequote
{toxinidir}/ci/test.cmd plain-pnaccents
{toxinidir}/ci/test.cmd plain-pndoublequote
{toxinidir}/ci/test.cmd plain-pnquote
{toxinidir}/ci/test.cmd plain-pntriplequote

0 comments on commit b1c1ac6

Please sign in to comment.