running tests, bundling and minifying) are failing?Ī: TeamCity can’t reject commits, because a commit done in VCS and TeamCity does not roll-back anything in VCS. Q: Can TeamCity reject commits, if the build steps (e.g. Wes has also recently released a new video course on SystemJS.Īnd here’s a short Q&A section based on the questions asked during the webinar: You can reach Wes on Twitter read his blog at and learn more about his company Full City Tech. He uses tools like Gulp, SystemJS, TSLint and Karma during his demo, but in the same way you can configure any command-line tools to run on TeamCity. Wes explains why we need CI and then covers the whole workflow for the modern JavaScript application: building the app, linting, unit testing and deployment. ![]() In this webinar you will learn about building and deploying JavaScript applications with TeamCity. Push to Git to trigger the build process and see the commit on TeamCity Server.The recording of our December 2 webinar with Wesley Higbee, Continuous Integration with JavaScript, is now available on JetBrains YouTube channel. Select an authentication method and test the connection.Īdd a Build Step and attach the newly created Build Configuration.Īs a last step, include the karma-teamcity-reporter plugin in the file. Attach a new VCS root on Build Configuration for Git.įor the demo, I forked the angular-phonecat project.On Windows Azure Management Portal add a new endpoint with the selected TeamCity Server port that was entered during installation. The remaining steps can be also done from the browser. Use the whoami command in the Command Prompt to find out the Virtual Machine's domain name.Īdd a new inbound rule to Windows Firewall with the TeamCity Server port that was entered during installation. If you use SSH keys to establish a secure connection between the Virtual Machine and Git, make sure to run TeamCity Server under a user account that can access the path where the SSH keys are saved. Install TeamCity and choose a port so it can be accessed from a browser (e.g. Optional: Generate SSH keys if you use SSH keys to establish a secure connection between the Virtual Machine and Git. Make sure the installation adds Git to the PATH environment variable.Install Chrome (if you want to use Chrome with Karma).Install Karma and karma-teamcity-reporter plugin:.Make sure the installation adds Node, npm, and modules to the PATH environment variable.Turn off Internet Explorer's Enhanced Security Configuration.Include the karma-teamcity-reporter plugin in the file triggering that way also the build process.Ĭreate a new Virtual Machine on Windows Azure to install and access TeamCity.In the command parameters option enter start -reporters teamcity -single-run.In the command executable option enter karma.In the run option select “Executable with parameters”.Set the working directory to Karma's config folder.In the runner type select Command Line. ![]() Add a Build Step and attach the newly created Build Configuration.Create and attach new VCS root to the newly created Build Configuration.Create a Build Configuration on TeamCity. ![]() Install Git and add its binaries folder to the PATH environment variable.Install Karma and karma-teamcity-reporter plugin.Install NodeJS (x86) and make sure the installation adds Node, npm, and modules to the PATH environment variable.Create a new Virtual Machine on Windows Azure to install and access TeamCity.Note: After following this post, the end result is pretty awesome:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |