forked from natcap/invest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
29 lines (29 loc) · 1.3 KB
/
bitbucket-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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"