Morgan Davies

Mar 23, 2018

2 min read

Building an Angular CLI project in Teamcity

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

Add the following script to your package.json

And finally, add the teamcity build step!

Building

Love podcasts or audiobooks? Learn on the go with our new app.