File tree 1 file changed +23
-4
lines changed
1 file changed +23
-4
lines changed Original file line number Diff line number Diff line change 2
2
#
3
3
# Check https://circleci.com/docs/2.0/language-python/ for more details
4
4
#
5
- version : 2
5
+ version : 2.1
6
+ commands :
7
+ early_return_for_forked_pull_requests :
8
+ description : >-
9
+ If this build is from a fork, stop executing the current job and return success.
10
+ This is useful to avoid steps that will fail due to missing credentials.
11
+ steps :
12
+ - run :
13
+ name : Early return if this build is from a forked PR
14
+ command : |
15
+ if [ -n "$CIRCLE_PR_NUMBER" ]; then
16
+ echo "Nothing to do for forked PRs, so marking this step successful"
17
+ circleci step halt
18
+ fi
6
19
jobs :
7
20
build :
8
21
docker :
9
22
- image : circleci/python:3.6.1
10
23
11
24
- image : redislabs/redisgraph:edge
12
- port : 6379:6379
13
25
14
26
working_directory : ~/repo
15
27
41
53
command : |
42
54
. venv/bin/activate
43
55
coverage run test.py
44
- codecov
45
-
56
+
57
+ - early_return_for_forked_pull_requests
58
+
59
+ - run :
60
+ name : codecove
61
+ command : |
62
+ . venv/bin/activate
63
+ codecov
64
+
46
65
# - store_artifacts:
47
66
# path: test-reports
48
67
# destination: test-reports
You can’t perform that action at this time.
0 commit comments