我尝试启动TeamCity。我在本地命令行中使用MSBuild和其他构建项目管理本地Android项目,但是当我将此命令插入TeamCity步骤时,我遇到了构建问题。
我的步骤:
- cd / d C:\ Program Files \ Mono \ bin
- mono nuget.exe恢复D:\ Analytics \ mob \ mob.sln
- cd / d D:\ Analytics \ mob \
- msbuild / t:Build / p:Configuration = Release mob.sln(此步骤不在Teamcity中构建,但在命令行中构建)
- cd / d D:\ Analytics \ mob \ mob \ mob \ _Droid \
- msbuild / t:PackageForAndroid / p:Configuration = Release mob.Droid.csproj
- 的jarsigner -verbose -sigalg md5withRSA -digestalg SHA1 -keystore d:\ maximarkets.keystore -storepass 123456 d:\分析\怪物\暴民\ mob.Droid \ BIN \发布\ maximarkets.analytics.apk publishingdoc
- cd / d C:\ Users \ Admin \ AppData \ Local \ Android \ sdk \ build-tools \ 25.0.1
- zipalign -f -v 4 D:\ Analytics \ mob \ mob \ mob \ _Droid \ bin \ Release \ maximarkets.analytics.apk D:\ maximarkets.analytics.apk
- cd / d C:\ Users \ Admin \ AppData \ Local \ Android \ sdk \ tools
- 模拟器-avd Nexus_5_API_23
- mono D:\ Analytics \ mob \ packages \ NUnit.2.6.4 \ bin \ nunit-console.exe D:\ Analytics \ mob \ UI_Test_CrossPlatform \ bin \ Release \ UI_Test_CrossPlatform.dll
-run =“UI_Test_CrossPlatform.Tests(Android)” - xml D:\ testresults.xml
醇>
完整日志:https://drive.google.com/open?id=0B6335YasDBf8NkMyTWFZOU5pUVk