Setup: Windows – .NET 4.5, Linux – Mono 3, Mint 17 (based on Ubuntu 14). I need to build and test .NET application from command line and on CI server.
Sample solution can be downloaded from here https://github.com/mchudinov/BuildingTesting. Solution is compatible with MonoDevelop 5, Xamarin Studio 5 and Visual Studio 2012,2013,2015.
1. Building in command line
There are two standard command line building tools for .NET:
MSBuild on Windows and xbuild on Linux/Mono. xbuild build files are compatible (with some exceptions) with MSBuild files.
We need at least 4 simple steps (targets as they called in MSBuild terminology) to build a .NET solution:
Restore NuGet packages
Run unit tests
This entry was posted in
continuous integration, unit testing and tagged .NET, C#, continuous integration, DevOps, mono, NuGet, NUnit, TeamCity, unit testing on . October 17, 2014
How to make work TeamCity Agent on Windows with Git through SSH
1. Run TeamCity Agent not from System account
2. This account must have a PuTTY session stored with SSH key
3. Server’s key must be cached by the TeamCity agent acount. Run plink in console and point plink to the target server.
plink -agent -i c : \ [ path -to -key ] \my _teamcity _private _key .ppk bitbucket .org
Confirm key caching ‘y’
How to setup TeamCity (tested with versions 8 and 9 on Windows) with https with not valid certificate.
This is the third part of my blogpost about integration between issue tracking system, CI server and VCS.
Part 1 is about components setup. Part 2 is about project setup.
This is the second part of blogpost about integration between issue tracking system, CI server and VCS.
Part 1 is about components setup. Part 3 is about resolving an issue.
This is the first part of my blogpost about integration between issue tracking system, CI server and VCS.
Part 2 is about project setup. Part 3 is about resolving an issue.
Use case: As a developer I want to see PHP source code in TeamCity build.
It is quite useful sometimes to observe code that used for build and tests of a project.
First of all there is a useful article about integration between PHP and TeamCity in the documentation to TeamCity 8 called
. It is worth to read it. Getting started with PHP
I have a couple of Merurial repos on BitBucket. And I have a CI TeamCity server on Windows. I want to integrate my local TeamCity with remote repos on BitBucket through SSH.
Ok, let’s start. As a precondition we should have
PuTTY installed and added to PATH on TeamCity Windows server and a generated public/private SSH keys pair.
PHPUnit v 3.7 documetation says that we can run same test in different browsers. We have to create a descendant class from PHPUnit_Extensions_SeleniumTestCase with a special variable called $browsers.