Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Spack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
eic_tools
Spack
Commits
e60f25f2
Commit
e60f25f2
authored
8 years ago
by
Todd Gamblin
Browse files
Options
Downloads
Patches
Plain Diff
Move args to .coveragerc
parent
d3ade02c
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
.coveragerc
+7
-0
7 additions, 0 deletions
.coveragerc
.travis.yml
+2
-2
2 additions, 2 deletions
.travis.yml
with
9 additions
and
2 deletions
.coveragerc
+
7
−
0
View file @
e60f25f2
# -*- conf -*-
# .coveragerc to control coverage.py
# .coveragerc to control coverage.py
[
run
]
[
run
]
branch
=
True
branch
=
True
source
=
lib
omit
=
lib
/
spack
/
spack
/
test
/*
lib
/
spack
/
env
/*
lib
/
spack
/
docs
/*
lib
/
spack
/
external
/*
[
report
]
[
report
]
# Regexes for lines to exclude from consideration
# Regexes for lines to exclude from consideration
...
...
This diff is collapsed.
Click to expand it.
.travis.yml
+
2
−
2
View file @
e60f25f2
...
@@ -24,9 +24,9 @@ script:
...
@@ -24,9 +24,9 @@ script:
-
spack config get compilers
-
spack config get compilers
-
spack install -v libdwarf
-
spack install -v libdwarf
# Run unit tests with code coverage
# Run unit tests with code coverage
-
coverage run
--source=lib --omit=lib/spack/spack/test/*,lib/spack/env/*,lib/spack/docs/*,lib/spack/external/*
bin/spack test
-
coverage run bin/spack test
# Checks if the file that have been changed are flake8 conformant
# Checks if the file that have been changed are flake8 conformant
-
CHANGED_PYTHON_FILES=`git diff develop... --name-only | perl -ne 'print if /\.py/
g
'`
-
CHANGED_PYTHON_FILES=`git diff develop... --name-only | perl -ne 'print if /\.py
$
/'`
-
if [[ ${CHANGED_PYTHON_FILES} ]] ; then flake8 --format pylint --config flake8.ini ${CHANGED_PYTHON_FILES} ; fi
-
if [[ ${CHANGED_PYTHON_FILES} ]] ; then flake8 --format pylint --config flake8.ini ${CHANGED_PYTHON_FILES} ; 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