Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Alexandru Bercuci
cbmroot
Commits
507214c3
Commit
507214c3
authored
Jan 22, 2021
by
Administrator
Browse files
Use docker runners for some basic checks
parent
fb985cee
Changes
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
507214c3
...
...
@@ -8,8 +8,9 @@ RebaseCheck:
stage
:
checkRepository
variables
:
GIT_DEPTH
:
100
image
:
alpine
tags
:
-
CbmRoot
-
docker
only
:
refs
:
-
merge_requests
...
...
@@ -20,6 +21,7 @@ RebaseCheck:
# comparison
# Check if a rebase is needed
# If a rebase is needed stop immediately
-
apk update && apk add git bash
-
scripts/connect_upstream_repo.sh $CI_MERGE_REQUEST_PROJECT_URL
-
git fetch upstream
-
hash1=$(git show-ref upstream/master | cut -f1 -d' ')
...
...
@@ -39,8 +41,9 @@ LinearHistCheck:
stage
:
checkRepository
variables
:
GIT_DEPTH
:
100
image
:
alpine
tags
:
-
CbmRoot
-
docker
only
:
refs
:
-
merge_requests
...
...
@@ -51,6 +54,7 @@ LinearHistCheck:
# comparison
# Check if the history introduced by the MR is linear (no branch loop in fork)
# If not linear stop immediately
-
apk update && apk add git bash
-
scripts/connect_upstream_repo.sh $CI_MERGE_REQUEST_PROJECT_URL
-
git fetch upstream
-
count=$(git rev-list --min-parents=2 --count upstream/master..HEAD)
...
...
@@ -91,8 +95,9 @@ CodeFormatCheck:
FileFormatCheck
:
stage
:
checkFormat
image
:
alpine
tags
:
-
CbmRoot
-
docker
only
:
refs
:
-
merge_requests
...
...
@@ -101,6 +106,7 @@ FileFormatCheck:
script
:
# Get the upstream repository manually. I did not find any other way to have it for
# comparison
-
apk update && apk add git bash file
-
scripts/connect_upstream_repo.sh $CI_MERGE_REQUEST_PROJECT_URL
-
git fetch upstream
-
scripts/check-file-format.sh upstream
...
...
Write
Preview
Supports
Markdown
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