...
Typically this would be set to "When new branch in repository is created" so that when you are developing a change it is automatically tested. Bitbucket will automatically tidy up files that relate to branches that have become inactive.
Note |
---|
It seems as if the Notification = Responsible setting may not inherit down to branches. This needs checking next time someone sets one of these up. If it doesn't you would need to remember to go back and set it when you branched the code. |
Step 6 - Dependencies / Permissions
...
(TODO: Check if we have any examples where we use this...)
Step 9 - Miscellaneous
Select "Use Clover to collect Code Coverage for this build."
Choose "Clover is already integrated into this build and a clover.xml file will be produced."
Enter "clover.xml".
The above steps assume you have pytest-clov and coverage2clover setup in your tox.ini.
When setup this will generate a report showing how the coverage changes from build to build.
TODO: Does this step mean that is is no longer neccesary to generate/publish the HTML coverage report as an Artifact?
Step 10 - Audit Log
Leave these as they are.
Step 10 - Job(s)
...
- Click on the "Add Task" button and search for a "Script" task. Click "OK".
- In the Task Description enter "Build Wheel"
- LINUX: Again, as this is a Linux task put "Shell" as the Interpreter.
- LINUX: For the script location Select "File" and put "housekeeping/scripts/linux/build_wheel.sh" as the script location.
- WINDOWS: TODO
- In the Argument field put "dev my_package", where my_package is the name of the package to be built. Dev is the index to which it will be published.
- Click Save
Note |
---|
The Windows version of this script will build a Python 27 virtual environment unless a parameter containing the folder name on the C drive ("Python36" etc.) where an alternative version is installed. This virtual environment will then be used for the subsequent steps including building the EXE. The Linux version will always use the RedHat SCL 3.6 Install and does not take any parameters. TODO: I think it would be clearer if the version of Python was specified more explicitly at the start of the prcoess. |
Step 14 - Junit Parser Task
...