Building an Angular CLI project in Teamcity

Morgan Davies
Mar 23, 2018 · 2 min read

Objectives

We should be able to lint, test, and build anAngular in Teamcity. Our final build steps in Teamcity will be:

Prerequisites

  • Node installed
  • Teamcity installed

Steps

Linting

Testing

Add the following to package.

In your Karma.config

  • Add a requirement on puppeteer.
  • Add the karma-teamcity-reporter plugin.
  • Switch the browser run in to ChromeHeadless
Karma.config

Add the following script to your package.json

Package.json

And finally, add the teamcity build step!

Building

Morgan Davies

Written by

More From Medium

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade