invest/bitbucket-pipelines.yml

30 lines
1.3 KiB
YAML

pipelines:
options:
max-time: 20
default:
- step:
name: Test update_installer_urls.py
image: python:2.7
script:
- pip install pytest
- python -m pytest scripts/update_installer_urls.py
custom:
appveyor-trigger:
- step:
# NOTE: this step should not normally be needed if hooks are running
# as expected with appveyor. It's added here in case we need to retrigger
# an appveyor build after-the-fact.
name: "Retrigger AppVeyor"
image: atlassian/default-image:2
script:
- |
curl --fail --header "Authorization: Bearer $APPVEYOR_API_KEY" \
--header "Content-Type: application/json" \
--data "{'accountName': '$APPVEYOR_ACC_NAME',
'projectSlug': '$APPVEYOR_PROJ_SLUG',
'branch': '$(hg branch)',
'commitID': '$(hg log -r . -T \"{node}\")'}" \
"https://ci.appveyor.com/api/builds"
- echo "Build history at "
- echo " https://ci.appveyor.com/project/$APPVEYOR_ACC_NAME/$APPVEYOR_PROJ_SLUG/history"