Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
91fa7072
Unverified
Commit
91fa7072
authored
Dec 11, 2020
by
Lysandre Debut
Committed by
GitHub
Dec 11, 2020
Browse files
Remove docs only check (#9065)
parent
70527ba6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
49 deletions
+0
-49
.circleci/config.yml
.circleci/config.yml
+0
-49
No files found.
.circleci/config.yml
View file @
91fa7072
...
@@ -3,47 +3,6 @@ orbs:
...
@@ -3,47 +3,6 @@ orbs:
gcp-gke
:
circleci/gcp-gke@1.0.4
gcp-gke
:
circleci/gcp-gke@1.0.4
go
:
circleci/go@1.3.0
go
:
circleci/go@1.3.0
commands
:
skip-job-on-doc-only-changes
:
description
:
"
Do
not
continue
this
job
and
exit
with
success
for
PRs
with
only
doc
changes"
steps
:
-
run
:
name
:
docs-only changes skip check
command
:
|
if test -n "$CIRCLE_PR_NUMBER"
then
echo $CIRCLE_PR_NUMBER
resp=$(curl -Ls https://api.github.com/repos/huggingface/transformers/pulls/${CIRCLE_PR_NUMBER})
user=$(jq -r .user.login \<<< $resp) # PR creator username
head_ref=$(jq -r .head.ref \<<< $resp) # PR user's branch name
echo head_ref=$head_ref, user=$user
fi
if test -n "$user" && test -n "$head_ref"
then
git clone https://github.com/$user/transformers user-clone
cd user-clone
git checkout $head_ref
fork_point_sha=$(git merge-base --fork-point master)
cd -
fi
if test -n "$fork_point_sha" && test -n "$(git diff --name-only $fork_point_sha)"
then
git --no-pager diff --name-only $fork_point_sha
if git diff --name-only $fork_point_sha | egrep -qv '\.(md|rst)$'
then
echo "Non-docs were modified in this PR, proceeding normally"
else
echo "Only docs were modified in this PR, quitting this job"
# enable skipping once we get this sorted out
# circleci step halt
fi
else
echo "Not enough data to perform a skipping check - continuing the job"
fi
# TPU REFERENCES
# TPU REFERENCES
references
:
references
:
...
@@ -114,7 +73,6 @@ jobs:
...
@@ -114,7 +73,6 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
skip-job-on-doc-only-changes
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v0.4-torch_and_tf-{{ checksum "setup.py" }}
-
v0.4-torch_and_tf-{{ checksum "setup.py" }}
...
@@ -141,7 +99,6 @@ jobs:
...
@@ -141,7 +99,6 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
skip-job-on-doc-only-changes
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v0.4-torch-{{ checksum "setup.py" }}
-
v0.4-torch-{{ checksum "setup.py" }}
...
@@ -168,7 +125,6 @@ jobs:
...
@@ -168,7 +125,6 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
skip-job-on-doc-only-changes
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v0.4-tf-{{ checksum "setup.py" }}
-
v0.4-tf-{{ checksum "setup.py" }}
...
@@ -195,7 +151,6 @@ jobs:
...
@@ -195,7 +151,6 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
skip-job-on-doc-only-changes
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v0.4-flax-{{ checksum "setup.py" }}
-
v0.4-flax-{{ checksum "setup.py" }}
...
@@ -222,7 +177,6 @@ jobs:
...
@@ -222,7 +177,6 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
skip-job-on-doc-only-changes
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v0.4-torch-{{ checksum "setup.py" }}
-
v0.4-torch-{{ checksum "setup.py" }}
...
@@ -249,7 +203,6 @@ jobs:
...
@@ -249,7 +203,6 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
skip-job-on-doc-only-changes
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v0.4-tf-{{ checksum "setup.py" }}
-
v0.4-tf-{{ checksum "setup.py" }}
...
@@ -274,7 +227,6 @@ jobs:
...
@@ -274,7 +227,6 @@ jobs:
RUN_CUSTOM_TOKENIZERS
:
yes
RUN_CUSTOM_TOKENIZERS
:
yes
steps
:
steps
:
-
checkout
-
checkout
-
skip-job-on-doc-only-changes
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v0.4-custom_tokenizers-{{ checksum "setup.py" }}
-
v0.4-custom_tokenizers-{{ checksum "setup.py" }}
...
@@ -302,7 +254,6 @@ jobs:
...
@@ -302,7 +254,6 @@ jobs:
parallelism
:
1
parallelism
:
1
steps
:
steps
:
-
checkout
-
checkout
-
skip-job-on-doc-only-changes
-
restore_cache
:
-
restore_cache
:
keys
:
keys
:
-
v0.4-torch_examples-{{ checksum "setup.py" }}
-
v0.4-torch_examples-{{ checksum "setup.py" }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment