File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ version : " 1.0"
2+ stages :
3+ - " clone"
4+ - " build"
5+ - " e2e_test"
6+ steps :
7+ main_clone :
8+ title : " Cloning repository"
9+ type : " git-clone"
10+ repo : " Labelbox/labelbox-python"
11+ stage : " clone"
12+ revision : " ${{CF_BRANCH}}"
13+ parallel_build :
14+ type : " parallel"
15+ stage : " build"
16+ steps :
17+ build_sdk_test :
18+ description : " Building Docker image for sdk tests"
19+ tag : " testing"
20+ type : " build"
21+ image_name : " sdk-tests"
22+ disable_push : true
23+ working_directory : " ${{main_clone}}"
24+ dockerfile : " Dockerfile"
25+ e2e_test :
26+ title : " Python SDK e2e tests"
27+ description : " Running Python SDK e2e tests"
28+ fail_fast : false
29+ stage : " e2e_test"
30+ image : " ${{build_sdk_test}}"
31+ working_directory : " IMAGE_WORK_DIR"
32+ commands :
33+ - pytest
34+ sendSlack :
35+ title : " Alert on failure"
36+ type : slack-message-sender
37+ arguments :
38+ WEBHOOK_URL : " ${{slack_webhook_url}}"
39+ MESSAGE : " Annotations Import pipelines have failed -- ${{CF_BUILD_URL}}"
40+ when :
41+ condition :
42+ all :
43+ failed : e2e_test.result == 'failure'
44+ check_for_failures :
45+ image : alpine
46+ commands :
47+ - exit 1
48+ when :
49+ condition :
50+ any :
51+ myCondition : e2e_test.result == 'failure'
You can’t perform that action at this time.
0 commit comments