Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
7df3bcfc
Commit
7df3bcfc
authored
5 years ago
by
Marko Petric
Browse files
Options
Downloads
Patches
Plain Diff
Add pylint py3k check and flake8 compliance to tests
parent
9970ab5b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.dd4hep-ci.d/runPythonChecks.sh
+10
-0
10 additions, 0 deletions
.dd4hep-ci.d/runPythonChecks.sh
.travis.yml
+12
-6
12 additions, 6 deletions
.travis.yml
with
22 additions
and
6 deletions
.dd4hep-ci.d/runPythonChecks.sh
0 → 100755
+
10
−
0
View file @
7df3bcfc
#!/bin/bash
source
/DD4hep/.dd4hep-ci.d/init_x86_64.sh
cd
/DD4hep
echo
"RUNNING PYLINT PY3K CHECK"
&&
\
find
.
-name
"*.py"
-and
-not
-name
'ddsix.py'
-exec
pylint
-E
--rcfile
=
.dd4hep-ci.d/DD4hep.pylint.py3k.rc
--py3k
--msg-template
=
"{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}"
{}
+
&&
\
echo
""
&&
\
echo
"RUNNING FLAKE8 CHECK"
&&
\
find
.
-name
"*.py"
-and
-not
-name
'ddsix.py'
-exec
flake8
{}
+
This diff is collapsed.
Click to expand it.
.travis.yml
+
12
−
6
View file @
7df3bcfc
...
...
@@ -8,10 +8,11 @@ language: cpp
env
:
matrix
:
-
COMPILER=gcc; LCG_RELEASE=LCG_96; STANDARD=17; COMPILER_VERSION=gcc8
-
COMPILER=gcc; LCG_RELEASE=LCG_96python3; STANDARD=17; COMPILER_VERSION=gcc8
-
COMPILER=clang; LCG_RELEASE=LCG_96; STANDARD=17; COMPILER_VERSION=clang8
-
COMPILER=gcc; LCG_RELEASE=LCG_96; STANDARD=14; COMPILER_VERSION=gcc62
-
COMPILER=gcc; LCG_RELEASE=LCG_96b; STANDARD=17; COMPILER_VERSION=gcc8; PYTHON_CHECK="no"
-
COMPILER=gcc; LCG_RELEASE=LCG_96python3; STANDARD=17; COMPILER_VERSION=gcc8; PYTHON_CHECK="no"
-
COMPILER=clang; LCG_RELEASE=LCG_96b; STANDARD=17; COMPILER_VERSION=clang8; PYTHON_CHECK="no"
-
COMPILER=gcc; LCG_RELEASE=LCG_96b; STANDARD=14; COMPILER_VERSION=gcc62; PYTHON_CHECK="no"
-
PYTHON_CHECK="yes"; COMPILER=gcc; LCG_RELEASE=LCG_96b; STANDARD=17; COMPILER_VERSION=gcc8;
before_install
:
-
wget --no-check-certificate https://ecsft.cern.ch/dist/cvmfs/cvmfs-release/cvmfs-release-latest_all.deb
...
...
@@ -45,8 +46,13 @@ install:
# command to run tests
script
:
-
docker run -ti --name CI_container -v $PKGDIR:/DD4hep -e COMPILER_TYPE=$COMPILER -e LCG_RELEASE=${LCG_RELEASE} -e STANDARD=${STANDARD} -e COMPILER_VERSION=${COMPILER_VERSION} -v /cvmfs/sft.cern.ch:/cvmfs/sft.cern.ch -v /cvmfs/geant4.cern.ch:/cvmfs/geant4.cern.ch -v /cvmfs/clicdp.cern.ch:/cvmfs/clicdp.cern.ch -d clicdp/cc7-lcg /bin/bash
-
docker exec -ti CI_container /bin/bash -c "./DD4hep/.dd4hep-ci.d/compile_and_test.sh"
-
if [[ "${TRAVIS_EVENT_TYPE}" != "cron" && "${TRAVIS_EVENT_TYPE}" != "pull_request" && "${COMPILER}" == "gcc" && "${TRAVIS_REPO_SLUG%/*}" == "AIDASoft" ]];
-
if [[ "$PYTHON_CHECK" == "yes" ]];
then docker exec -ti CI_container /bin/bash -c "./DD4hep/.dd4hep-ci.d/runPythonChecks.sh";
else docker exec -ti CI_container /bin/bash -c "./DD4hep/.dd4hep-ci.d/compile_and_test.sh";
fi
after_success
:
-
if [[ "${TRAVIS_EVENT_TYPE}" != "cron" && "${TRAVIS_EVENT_TYPE}" != "pull_request" && "${COMPILER}" == "clang" && "${TRAVIS_REPO_SLUG%/*}" == "AIDASoft" ]];
then curl -X POST -F token=$GITLAB_TOKEN -F ref=master https://gitlab.cern.ch/api/v4/projects/7828/trigger/pipeline;
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment