Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
deckard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
24
Issues
24
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
deckard
Commits
ba3544ef
Verified
Commit
ba3544ef
authored
Nov 01, 2017
by
Štěpán Balážik
Committed by
Petr Špaček
Mar 05, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci: add rplint to CI
parent
11207635
Pipeline
#34046
passed with stage
in 56 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
+37
-0
.gitlab-ci.yml
.gitlab-ci.yml
+11
-0
ci/compare-rplint.sh
ci/compare-rplint.sh
+22
-0
ci/runlocally.sh
ci/runlocally.sh
+4
-0
No files found.
.gitlab-ci.yml
View file @
ba3544ef
...
...
@@ -33,6 +33,17 @@ test:pylint:
-
linux
-
amd64
test:rplint:
stage
:
test
script
:
-
cp ci/common.sh /tmp
-
cp ci/compare-rplint.sh /tmp
-
/tmp/compare-rplint.sh
tags
:
-
docker
-
linux
-
amd64
test:unittests:
stage
:
test
script
:
...
...
ci/compare-rplint.sh
0 → 100755
View file @
ba3544ef
#!/bin/bash
set
-o
nounset
-o
xtrace
-o
errexit
source
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
/common.sh"
function
find_new_tests
{
: detect tests affected by current merge request
: store list of modified tests
in
${
NEW_TESTS_FILE
}
git diff
--name-only
--diff-filter
=
A
${
MERGEBASE
}
${
HEAD
}
| fgrep .rpl
>
"
${
NEW_TESTS_FILE
}
"
||
: no new tests detected
}
NEW_TESTS_FILE
=
"/tmp/new_tests"
find_new_tests
truncate
-s0
/tmp/rplint_fails
for
test
in
$(
cat
${
NEW_TESTS_FILE
}
)
do
${
PYTHON
}
-m
rplint
$test
>>
/tmp/rplint_fails
done
cat
/tmp/rplint_fails
test
"!"
-s
/tmp/rplint_fails
ci/runlocally.sh
View file @
ba3544ef
...
...
@@ -19,6 +19,10 @@ test -n "${STATUS}" && echo "Working tree is dirty, commit your changes now." &&
trap
checkout_back EXIT
trap
"{ FAILURE_DETECTED=1; }"
ERR
"
${
CIDIR
}
"
/compare-rplint.sh
checkout_back
git clean
-xdf
"
${
CIDIR
}
"
/compare-pylint.sh
checkout_back
git clean
-xdf
...
...
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