tag:help.appveyor.com,2012-11-13:/discussions/questions/1625-service-fabricAppVeyor: Discussion 2018-10-19T08:17:26Ztag:help.appveyor.com,2012-11-13:Comment/377954372015-08-30T13:29:27Z2015-08-31T07:05:01ZService Fabric<div><p>Hi Chris,</p>
<p>Service Fabric is not yet installed on build workers, but you
can try deploying necessary assemblies and targets files using the
approach described <a>
here: http://help.appveyor.com/discussions/problems/2892-vsto-visua...</a></p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377954372015-08-30T13:47:55Z2015-08-31T07:05:01ZService Fabric<div><p>Alternatively, you can install Service Fabric with this
command:</p>
<p> Webpicmd /install
/products:"MicrosoftAzure-ServiceFabric" /AcceptEULA</p>
<p>Thought it takes around 3 min of your build time.</p>
<p>See this build for <a>
example: https://ci.appveyor.com/project/FeodorFitsner/simple-conso...</a></p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377954372015-08-30T23:29:07Z2015-08-31T07:05:00ZService Fabric<div><p>Hi Feodor,</p>
<p>Thanks for the reply. Any chance that the service fabric
installation could be cached and subsequent build can restore cache
and skip install?</p>
<p>Regards,<br>
Billy Li<br>
Software developer at Fair Go Finance</p>
<p>--------Forwarded message-------- From: Chris McKelt <<a
href="mailto:chrism@fairgofinance.com.au">chrism@fairgofinance.com.au><br>
Date: Mon, Aug 31, 2015 at 6:56 am<br>
Subject: Fwd: Re: Service Fabric [Questions #1625]<br>
To: Billy Li <<a
href="mailto:billyl@fairgofinance.com.au">billyl@fairgofinance.com.au><br>
You able to have a look at this please</p>
<p>Sent from Outlook<a href="http://aka.ms/Ox5hz3">http://aka.ms/Ox5hz3</a></p>
<p>---------- Forwarded message ----------</p></div>Billy Litag:help.appveyor.com,2012-11-13:Comment/377954372015-08-31T07:08:12Z2015-08-31T07:08:12ZService Fabric<div><p>I think that's possible if you deploy required assemblies and
target files like described in that method for VSTO. Most probably
you don't need all the stuff installed by Service a Fabric
installer to support your builds.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377954372015-08-31T07:41:26Z2015-08-31T07:41:27ZService Fabric<div><p>Great Thanks,</p>
<p>We got it building now but couldn't work out how to deploy it to
azure. Any help would be appreciated.</p>
<p>Regards,<br>
Billy Li</p>
<p>Sent using CloudMagic<a href="https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.0.42&pv=4.4.2">https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.0.42&pv=4.4.2</a></p></div>Billy Litag:help.appveyor.com,2012-11-13:Comment/377954372015-08-31T13:46:42Z2015-08-31T13:46:42ZService Fabric<div><p>What issues do you have with that? Did automatic packaging
worked for you: <a href="http://www.appveyor.com/docs/deployment/azure-cloud-service#automatic-packaging">
http://www.appveyor.com/docs/deployment/azure-cloud-service#automat...</a>
?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377954372015-09-01T00:04:18Z2015-09-01T00:04:18ZService Fabric<div><p>Hi Feodor,</p>
<p>I guess this is more of question for Microsoft as I couldn't
find the service in Azure. It is not cloud service. However, if you
heard of anyone with success deploying service fabric app, it would
be appreciated if you could let me know.</p>
<p>Regards,</p>
<p>Billy</p>
<hr></div>Billy Litag:help.appveyor.com,2012-11-13:Comment/377954372015-09-01T10:46:01Z2015-09-01T10:46:01ZService Fabric<div><p>When deploying from Visual Studio</p>
<p>2015 you should see deployment commands in the output log?</p>
<ul>
<li>Feodor</li>
</ul></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377954372015-09-01T12:47:43Z2015-09-01T12:47:43ZService Fabric<div><p>We can't even deploy it from vs2015, service fabric seems to be
in very early preview stage.</p>
<p>Sent using CloudMagic<a href="https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.0.42&pv=4.4.2">https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.0.42&pv=4.4.2</a></p></div>Billy Litag:help.appveyor.com,2012-11-13:Comment/377954372015-09-03T05:11:16Z2015-09-03T05:11:17ZService Fabric<div><p>Hi Feodor,</p>
<p>We have decided to switch to Api App (similar to webapp) ?<br>
<a href="https://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/">
https://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/</a><a href="https://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/">https://azure.microsoft.com/en-us/documentation/articles/app-servic...</a></p>
<p>It can be deployed using web deploy but on Azure, you could not
download the publish settings for api app (unlike web app). If you
deploy it from vs2015, it create a publish profile and the
encrypted password in your
"Properties\PublishProfiles.pubxml.user". I can work out all the
other parameters need for webdeploy from the profile, just missing
the password. Any chance you would know how vs2015 decrypt that
password?</p>
<p>Regards,</p>
<p>Billy Li</p>
<hr></div>Billy Litag:help.appveyor.com,2012-11-13:Comment/377954372015-09-03T08:11:17Z2015-09-03T08:11:17ZService Fabric<div><p>Hi Feodor,</p>
<p>Please ignore my previous query. I have already sorted it out.
However, I couldn't work out how to do multiple env deployment in
appveyor.yml</p>
<p>Neither</p>
<p>deploy:<br>
provider: Environment name: dev-webclient name: dev-webapi</p>
<p>Nor</p>
<p>deploy:<br>
provider: Environment name: dev-webclient deploy:<br>
provider: Environment name: dev-webapi?</p>
<p>Works. How could I configure it to auto deploy two artifacts to
two different env?</p>
<p>Regards,<br>
Billy Li</p>
<hr>
<p>From: Billy Li<br>
Sent: Thursday, 3 September 2015 1:10 PM<br>
To: Feodor Fitsner<br>
Subject: RE: Service Fabric [Questions #1625]</p>
<p>Hi Feodor,</p>
<p>We have decided to switch to Api App (similar to webapp) ?<br>
<a href="https://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/">
https://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/</a><a href="https://azure.microsoft.com/en-us/documentation/articles/app-service-dotnet-deploy-api-app/">https://azure.microsoft.com/en-us/documentation/articles/app-servic...</a></p>
<p>It can be deployed using web deploy but on Azure, you could not
download the publish settings for api app (unlike web app). If you
deploy it from vs2015, it create a publish profile and the
encrypted password in your
"Properties\PublishProfiles.pubxml.user". I can work out all the
other parameters need for webdeploy from the profile, just missing
the password. Any chance you would know how vs2015 decrypt that
password?</p>
<p>Regards,</p>
<p>Billy Li</p>
<hr></div>Billy Litag:help.appveyor.com,2012-11-13:Comment/377954372015-09-03T21:36:35Z2015-09-03T21:36:35ZService Fabric<div><p>What kind of environment is that: Web Deploy, Agent or
other?</p>
<p>You should set the name of to-be-deployed artifact on
environment settings. All environments have "Artifact" field on
their settings where you can put artifact file name or artifact
"deployment name".</p>
<p>Please let me know if you have any questions.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377954372015-09-03T22:56:51Z2015-09-03T22:56:51ZService Fabric<div><p>Thanks for the reply.</p>
<p>I get it working by</p>
<p>deploy:<br>
-provider: Env... name: web deploy 1 -provider: Env name: web
deploy 2</p>
<p>It was the dash that is missing and appveyor complain about
duplicate key</p>
<p>Sent using CloudMagic<a href="https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.0.42&pv=4.4.2">https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.0.42&pv=4.4.2</a></p></div>Billy Litag:help.appveyor.com,2012-11-13:Comment/377954372015-09-19T03:53:27Z2015-09-19T03:53:27ZService Fabric<div><p>Hi Feodor,</p>
<p>Thanks for your kind help on service fabric previously, we have
encounter three more questions recently and your help will be
appreciated.</p>
<p>1) Multi Env Config<br>
We want to build our dev branch using our dev config and deploy to
dev server, while test branch under test config deploy to test
server. Following your doco, we achieved this by specify -branch:
dev in the yml and copy the same content and paste to the end
changing to -branch: test. However, we have two identical code to
maintain now. Is there a way to override configuration (we only
need to change the build configuration and deploy parts) while
reuse other same config?</p>
<p>2) Build on tag only<br>
For the test branch we only want to trigger build on tag only.
Following the doc, we achieve deploy on tag only, but don't know
how to build on tag only.</p>
<p>3) Tests<br>
We have both xunit unit and integration tests and karma js tests.
We achieve running all of them by using auto discover plus manual
run karma in after_test hook.</p>
<p>However, our new requirement is<br>
Run xunit test on all *.tests.dll except the dll
integration.tests.dll<br>
--> Then run a sql database setup cmd<br>
--> Then run xunit on the integration.tests.dll<br>
--> Finally run karma</p>
<p>I don't know if the auto discover would suit our requirement, so
we have tried a test_script, but the xunit.console.clr4 complains
that the xunit.dll is not in bin, however, I only have
xunit.core.dll not xunit.dll</p>
<p>Regards,<br>
Billy</p>
<p>Sent using CloudMagic<a href="https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.3.5&pv=4.4.2">https://cloudmagic.com/k/d/mailapp?ct=pa&cv=7.3.5&pv=4.4.2</a></p></div>Billy Litag:help.appveyor.com,2012-11-13:Comment/377954372015-09-21T02:46:21Z2015-09-21T02:46:21ZService Fabric<div><p>1) They should be copied at the moment though we have a
requirement to make it simpler.</p>
<p>2) Added a new issue: <a href="https://github.com/appveyor/ci/issues/429">https://github.com/appveyor/ci/issues/429</a>
I'm not sure about branch configuration in the case. In many cases
branch is undefined for tag commits. Looks like we should have tags
filter then?</p>
<p>3) I think for this scenario is better providing your own test
script with those commands.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/377954372015-09-21T03:15:57Z2015-09-21T03:15:57ZService Fabric<div><p>Hi Feodor,</p>
<p>Thanks for your reply. For question 2, I am sorry that I
couldn't answer, I am not aware that branch is undefined for tag
commits and what means by a tag filter.</p>
<p>I notice that when I push to my test-branch, appveyor trigger a
build correctly using the test-branch, and when I create a tag in
github, I can specify the tag using test-branch, then appveyor
trigger another build correctly using the test-branch, so I guess
appveyor actually knows which branch is the tag commit coming from?
Or have I misunderstood your question?</p>
<p>?[cid:cf86fe57-4657-424a-a8d1-81ec29127831]</p>
<p>[cid:281deab9-4647-4e25-be0f-6db4cee9be6f]</p>
<h1><a class="anchor" name="-please-reply-above-this-line" href="#-please-reply-above-this-line"></a>// Please reply above this
line</h1>
<p>From: Feodor Fitsner (Support staff)</p>
<p>1) They should be copied at the moment though we have a
requirement to make it simpler.</p>
<p>2) Added a new issue: <a href="https://github.com/appveyor/ci/issues/429">https://github.com/appveyor/ci/issues/429</a>
I'm not sure about branch configuration in the case. In many cases
branch is undefined for tag commits. Looks like we should have tags
filter then?</p>
<p>3) I think for this scenario is better providing your own test
script with those commands.</p>
<hr></div>Billy Li