-
Notifications
You must be signed in to change notification settings - Fork 307
TeamCity CI Integration
Colin Snover edited this page Jun 24, 2014
·
2 revisions
Intern is designed to easily integrate with the TeamCity continuous integration service. There are two primary ways that Intern can be integrated with a TeamCity project: either by adding a new build configuration that is chained using a post-build trigger, or by adding additional build steps to an existing build configuration. A change to your Intern configuration to use the teamcity
reporter is also recommended for maximum integration.
- Go to the project that you want to add Intern to and click “Edit Project Settings” at the top-right.
- In the left-hand menu, click “General Settings”.
- Under “Build Configurations”, click “Edit” on the existing build configuration you want to add Intern to.
- In the left-hand menu, click “Build Steps”.
- Click “Add build step”.
- Select “Command Line” from the “Runner type” drop-down.
- Enter a name like “Run Intern” as the step name.
- Select “Custom Script” from the “Run” drop-down.
- Under “Custom script”, enter the command you want to use to run Intern. See the Running Intern section for possible commands.
- Click “Save”.
- Go to the project that you want to add Intern to and click “Edit Project Settings” at the top-right.
- In the left-hand menu, click “General Settings”.
- Under “Build Configurations”, click “Create build configuration”.
- Enter a name like “Intern” as the build configuration name.
- Click “Save”.
- In the left-hand menu, click “Build Steps”.
- Click “Add build step”.
- Select “Command Line” from the “Runner type” drop-down.
- Enter a name like “Run Intern” as the step name.
- Select “Custom Script” from the “Run” drop-down.
- Under “Custom script”, enter the command you want to use to run Intern. See the Running Intern section for possible commands.
- Click “Save”.
- Go back to the settings page for the project.
- In the left-hand menu, click “General Settings”.
- Click “Edit” on the build configuration you want to trigger Intern from.
- In the left-hand menu, click “Triggers”.
- Click “Add new trigger”.
- Choose “Finish Build Trigger” from the drop-down.
- Under “Build configuration”, choose the Intern build configuration that was just created.
- Check “Trigger after successful build only”.
- Click “Save”.
For best integration with TeamCity, Intern comes with a special reporter that outputs data in TeamCity format. To activate this reporter, you can either add reporters=teamcity
to the command you use to run Intern, or you can put reporters: [ 'teamcity' ]
in your Intern configuration file.