Skip to content

Commit

Permalink
fix artifact building on win
Browse files Browse the repository at this point in the history
  • Loading branch information
jtattermusch committed Jan 19, 2016
1 parent 47b90cb commit 9fd61c6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,6 @@ DerivedData
# Podfile.lock and the workspace file are tracked, to ease deleting them. That's
# needed to trigger "pod install" to rerun the preinstall commands.
Pods/

# Artifacts directory
artifacts/
12 changes: 12 additions & 0 deletions tools/run_tests/build_artifact_csharp.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
@rem Builds C# artifacts on Windows

@call vsprojects\build_vs2013.bat %* || goto :error

mkdir artifacts
copy /Y vsprojects\Release\grpc_csharp_ext.dll artifacts || goto :error

goto :EOF

:error
echo Failed!
exit /b %errorlevel%
5 changes: 3 additions & 2 deletions tools/run_tests/build_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@
import uuid

# Docker doesn't clean up after itself, so we do it on exit.
atexit.register(lambda: subprocess.call(['stty', 'echo']))
if jobset.platform_string() == 'linux':
atexit.register(lambda: subprocess.call(['stty', 'echo']))

ROOT = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), '../..'))
os.chdir(ROOT)
Expand Down Expand Up @@ -122,7 +123,7 @@ def build_jobspec(self):
if self.platform == 'windows':
msbuild_platform = 'Win32' if self.arch == 'x86' else self.arch
return create_jobspec(self.name,
['vsprojects\\build_vs2013.bat',
['tools\\run_tests\\build_artifact_csharp.bat',
'vsprojects\\grpc_csharp_ext.sln',
'/p:Configuration=Release',
'/p:PlatformToolset=v120',
Expand Down

0 comments on commit 9fd61c6

Please sign in to comment.