TeamCity has a bunch of parameters that you can use to change-up your build number if you want to. Want to add the build count? 1.0.%build.counter% How about adding the branch name as well? 1.0.%build.counter%-%teamcity.build.branch% How about truncating the branch name at 20 characters to support Semantic Versioning and excluding the branch name completely if […]
TeamCity
Create a Grunt meta-runner in TeamCity
As much as all the cool kids are now using Gulp, I’m still using Grunt for a few few automated tasks. In our current project, we’re using it to compress all of our JS in the project, run the Jasmine tests through Karma, and generate test code coverage reports. As well as doing this locally, […]
Use Ant and Closure Compiler to compress every JavaScript file in a project if you have lots of files
In a previous post, I set out how to use an Ant script to run every JavaScript file in a project through the Closure compiler. For the most part, this has been working fine for me. Then I ran it against a project with some 50-odd JavaScript files and it started to throw PermGen OutOfMemoryError […]
Use Ant and Closure Compiler to compress every JavaScript file in a project
There’s an updated version of this script in this blog post. At work, we use TeamCity to automatically build and deploy to dev projects as we check in changes. One thing that’s always been a bit of a nuisance is dealing with the compression of JavaScript files that we’ve written for the projects. Developing locally, […]