Continuous Integration with
        Teamcity
• Did you ever get broken build from TFS?
Did you ever
get unexpected exceptions on the page
      after someone checked-in?
Did you ever
get unexpected exceptions in sublayouts
      after someone checked-in?
Did you?
•   Get errors on dev env which are not on local?
•   How frequent you run unit test?
•   What about acceptance tests?
•   How do you perform code review?
•   Do you always have dev env up to date?
•   …
Continuous Integration
      But what is it???
Why we need CI?
•   Big and long integration to small and frequent
•   Visualize the build process, !!!Alarm!!!
•   Minimize ”broken build time”
•   Continuous Integrated testing
•   Continuous Auto deployment
•   Continuous code inspection
What systems do we know?
•   Cruise Control .NET (open source)
•   TFS Builds (Microsoft TFS)
•   Bamboo (Atlassian)
•   TeamCity (JetBrains)
•   …
TeamCity
Download and Install
Open and Register Admin Account
Create a project
Build configuration
VCS settings
Build triggers
Step1 - Build Sources
Step2 - UnitTests run
Deployment configuration
• Create new configuration “Deployment”
• Trigger “Deployment” if Trunk build succeeded



• Setup Artifact dependencies to Trunk build and
  copy them to Dev site.
Step1 – Acceptance tests run
What you can do more?
•   Code Coverage (ncover/dotCover/…)
•   Find Duplicates
•   Code inspections (FxCop, Inspections)
•   HTML/css validation W3C
•   Run nAnt / Powershel / Command line
    operations
What we have to install?
•   Visual Studio 2010 (MSBuild, MSTest)
•   TeamCity 6.5
•   Entity Framework 4.1
•   Firefox (for Acceptance tests)
Live demo
•   TFS checking trigger
•   Running build
•   UnitTests results
•   Build logs
•   Code Review - changeset
•   Auto Deployment to dev
•   Acceptance Tests results
I’m New developer
•   Subayouts Error
•   Page Error
•   Source Code Error
•   Run build
•   See logs, status, screenshot
•   Fix errors
•   Run build
•   See status
Look a bit more
•   Test Performance history
•   Code Coverage
•   Code Inspection
•   Code Duplication
•   …
Continuous integration with teamcity

Continuous integration with teamcity

  • 1.
  • 2.
    • Did youever get broken build from TFS?
  • 3.
    Did you ever getunexpected exceptions on the page after someone checked-in?
  • 4.
    Did you ever getunexpected exceptions in sublayouts after someone checked-in?
  • 5.
    Did you? • Get errors on dev env which are not on local? • How frequent you run unit test? • What about acceptance tests? • How do you perform code review? • Do you always have dev env up to date? • …
  • 6.
    Continuous Integration But what is it???
  • 8.
    Why we needCI? • Big and long integration to small and frequent • Visualize the build process, !!!Alarm!!! • Minimize ”broken build time” • Continuous Integrated testing • Continuous Auto deployment • Continuous code inspection
  • 9.
    What systems dowe know? • Cruise Control .NET (open source) • TFS Builds (Microsoft TFS) • Bamboo (Atlassian) • TeamCity (JetBrains) • …
  • 10.
  • 11.
  • 12.
    Open and RegisterAdmin Account
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
    Deployment configuration • Createnew configuration “Deployment” • Trigger “Deployment” if Trunk build succeeded • Setup Artifact dependencies to Trunk build and copy them to Dev site.
  • 20.
  • 21.
    What you cando more? • Code Coverage (ncover/dotCover/…) • Find Duplicates • Code inspections (FxCop, Inspections) • HTML/css validation W3C • Run nAnt / Powershel / Command line operations
  • 22.
    What we haveto install? • Visual Studio 2010 (MSBuild, MSTest) • TeamCity 6.5 • Entity Framework 4.1 • Firefox (for Acceptance tests)
  • 23.
    Live demo • TFS checking trigger • Running build • UnitTests results • Build logs • Code Review - changeset • Auto Deployment to dev • Acceptance Tests results
  • 24.
    I’m New developer • Subayouts Error • Page Error • Source Code Error • Run build • See logs, status, screenshot • Fix errors • Run build • See status
  • 25.
    Look a bitmore • Test Performance history • Code Coverage • Code Inspection • Code Duplication • …