Skip to content

Commit bb21de9

Browse files
committed
Add basic make.ps1 for Windows
1 parent c0255b2 commit bb21de9

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ riak.egg-info/
1414
.eggs/
1515
#*#
1616
*~
17-
*.ps1

make.ps1

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Set-StrictMode -Version Latest
2+
$ErrorActionPreference = 'Stop'
3+
4+
$env:RIAK_TEST_HOST = 'riak-test'
5+
$env:RIAK_TEST_PROTOCOL = 'pbc'
6+
$env:RIAK_TEST_PB_PORT = 10017
7+
$env:RUN_DATATYPES = 1
8+
$env:RUN_INDEXES = 1
9+
$env:RUN_POOL = 1
10+
$env:RUN_YZ = 1
11+
12+
flake8 --exclude=riak/pb riak commands.py setup.py version.py
13+
if ($LastExitCode -ne 0) {
14+
throw 'flake8 failed!'
15+
}
16+
17+
python setup.py test
18+
if ($LastExitCode -ne 0) {
19+
throw 'python tests failed!'
20+
}

0 commit comments

Comments
 (0)