8000 CI add pypy test marker for circle-ci · scikit-learn/scikit-learn@63bff83 · GitHub
[go: up one dir, main page]

Skip to content

Commit 63bff83

Browse files
committed
CI add pypy test marker for circle-ci
1 parent db17f3e commit 63bff83

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.circleci/config.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ jobs:
7171
- run:
7272
name: flake8
7373
command: ./build_tools/circle/flake8_diff.sh
74+
- run:
75+
name: check_pypy_marker
76+
command: ./build_tools/circle/check_pypy_marker.sh
7477

7578
pypy3:
7679
docker:
@@ -112,11 +115,6 @@ workflows:
112115
- doc
113116
- doc-min-dependencies
114117
- lint
115-
- pypy3:
116-
filters:
117-
branches:
118-
only:
119-
- 0.20.X
120118
- deploy:
121119
requires:
122120
- doc
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env bash
2+
set -x
3+
set -e
4+
5+
# Check for pypy marker in the commit message and
6+
# trigger the job if the marker is present.
7+
8+
commit_msg=$(git log --format=%B -n 1 $CIRCLE_SHA1)
9+
10+
if [[ "$commit_msg" =~ "[pypy]" ]]
11+
then
12+
curl --user ${CIRCLE_API_USER_TOKEN} \
13+
--data build_parameters[CIRCLE_JOB]=pypy3 \
14+
https://circleci.com/api/v1.1/project/github/$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME/tree/$CIRCLE_BRANCH
15+
fi

0 commit comments

Comments
 (0)
0