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
f4422dc1
Commit
f4422dc1
authored
8 years ago
by
Massimiliano Culpo
Browse files
Options
Downloads
Patches
Plain Diff
qa : fixes #1370 (no flake8 on python 2.6, coveralls only python 2.7)
parent
e04662f8
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+14
-11
14 additions, 11 deletions
.travis.yml
share/spack/qa/run-unit-tests
+20
-0
20 additions, 0 deletions
share/spack/qa/run-unit-tests
with
34 additions
and
11 deletions
.travis.yml
+
14
−
11
View file @
f4422dc1
language
:
python
python
:
-
"
2.6"
-
"
2.7"
env
:
-
TEST_TYPE=unit
-
TEST_TYPE=flake8
# Exclude flake8 from python 2.6
matrix
:
exclude
:
-
python
:
"
2.6"
env
:
TEST_TYPE=flake8
# Use new Travis infrastructure (Docker can't sudo yet)
sudo
:
false
...
...
@@ -20,20 +30,13 @@ before_install:
-
git fetch origin develop:develop
script
:
# Regular spack setup and tests
-
. share/spack/setup-env.sh
-
spack compilers
-
spack config get compilers
-
spack install -v libdwarf
# Run unit tests with code coverage
-
coverage run bin/spack test
# Run unit tests with code coverage plus install libdwarf
-
'
if
[
"$TEST_TYPE"
=
"unit"
];
then
share/spack/qa/run-unit-tests;
fi'
# Run flake8 code style checks.
-
share/spack/qa/run-flake8
-
'
if
[
"$TEST_TYPE"
=
"flake8"
];
then
share/spack/qa/run-flake8
;
fi'
after_success
:
-
coveralls
-
'
if
[
"$TEST_TYPE"
=
"unit"
]
&&
[
"$TRAVIS_PYTHON_VERSION"
=
"2.7"
];
then
coveralls
;
fi'
notifications
:
email
:
...
...
This diff is collapsed.
Click to expand it.
share/spack/qa/run-unit-tests
0 → 100755
+
20
−
0
View file @
f4422dc1
#!/usr/bin/env bash
#
# This script runs Spack unit tests.
#
# It should be executed from the top-level directory of the repo,
# e.g.:
#
# share/spack/qa/run-unit-tests
#
# To run it, you'll need to have the Python coverage installed locally.
#
# Regular spack setup and tests
.
./share/spack/setup-env.sh
spack compilers
spack config get compilers
spack
install
-v
libdwarf
# Run unit tests with code coverage
coverage run bin/spack
test
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