Teamcity Python Runner

Configuring TeamCity to run Python tests when scheduled. TeamCity can be configured to invoke our test suite and collect results in a scheduled interval. These steps will prepare us for this recipe by starting up TeamCity and having some code ready for testing. There is a Nose plugin that automatically detects when tests are being run from inside the TeamCity. This conveniently captures test results and communicates them with TeamCity. With this recipe, we will explore how to setup a CI job inside TeamCity that runs our tests and then manually invokes that job.

  1. Teamcity Python Runners
  2. 1:32youtube.comRunning A Simple Python Script
Latest version

Released:

Use the TeamCity REST API from Python

Project description

PyTeamCity

Python interface to the RESTAPI ofTeamCity

New API work-in-progress

Note that I am working on a new API currently calledpyteamcity.future(initially added in#37).

Goal here is to create a brand new API that is much more flexible and tohave nicer code that is easier to work with. The old code encouragesadding a zillion methods for different ways of filtering. The new codehas an API with a smaller number of methods that are more consistent andmore flexible in terms of filtering. It is modeled after the Django ORMAPI.

There’s no formal docs for this API yet, but you should be able tofigure out how to use it by looking at the unittests.

I am probably not going to merge PRs that add things to the old API,because I see the new API as the future. I of course am very interestedin PRs that add things to the new API!

Examples

Connect to server

or specify no parameters and it will read settings from environmentvariables:

Teamcity Python Runner
  • TEAMCITY_USER
  • TEAMCITY_PASSWORD
  • TEAMCITY_HOST
  • TEAMCITY_PORT (Defaults to 80 if not set)

Getting data

You can also look atsample.pyortest_legacy.py

Acknowledgements

This is a heavily-modified fork ofhttps://github.com/yotamoron/teamcity-python-rest-client so many thanksare due to Yotam Oron

Changes

0.1.1 (2016-11-09)

Project details


Teamcity Python Runner

Release historyRelease notifications | RSS feed

0.1.1

0.1.0

0.0.1

0.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyteamcity, version 0.1.1
Filename, sizeFile typePython versionUpload dateHashes
Filename, size pyteamcity-0.1.1-py2-none-any.whl (12.5 kB) File type Wheel Python version 2.7 Upload dateHashes
Filename, size pyteamcity-0.1.1.tar.gz (35.0 kB) File type Source Python version None Upload dateHashes
Close

Hashes for pyteamcity-0.1.1-py2-none-any.whl

Hashes for pyteamcity-0.1.1-py2-none-any.whl
AlgorithmHash digest
SHA25643a5c91e62590259321dec37cfd0dc297905e92d9d2026030a016acf3d0e8cf7
MD5df1d124c1bbddb3af017cbae5ae657bd
BLAKE2-256f3ccc4e598e5c1a9250ec7088c239732bb4ac195f0439336f6b55389286f179e
Close

Teamcity Python Runners

Hashes for pyteamcity-0.1.1.tar.gz

1:32youtube.comRunning A Simple Python Script

Hashes for pyteamcity-0.1.1.tar.gz
AlgorithmHash digest
SHA2563d9f97fff7f397f2c2484acd5acda7bb48681ec1ff9ed80443a7c374613b0fe1
MD57aa97fd86a151d3243ed1e31f79852cd
BLAKE2-256075b18104c49d8bb77a8f4ddd80822b223edbbd8e49ffcf539018b686b6b6e4f