Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
FSL
fslpy
Commits
2e832fb7
There was a problem fetching the pipeline summary.
Commit
2e832fb7
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Only run long tests on release branches
parent
1ab49ce6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.ci/test_template.sh
+9
-2
9 additions, 2 deletions
.ci/test_template.sh
.gitlab-ci.yml
+2
-3
2 additions, 3 deletions
.gitlab-ci.yml
with
11 additions
and
5 deletions
.ci/test_template.sh
+
9
−
2
View file @
2e832fb7
...
...
@@ -31,6 +31,7 @@ mkdir -p $FSLDIR/data/
rsync
-rv
"fsldownload:data/atlases/"
"
$FSLDIR
/data/atlases/"
# Finally, run the damned tests.
TEST_OPTS
=
"--cov-report= --cov-append"
# We run some tests under xvfb-run
# because they invoke wx. Sleep in
...
...
@@ -48,6 +49,12 @@ xvfb-run python setup.py test --addopts="$TEST_OPTS tests/test_platform.py"
chmod
-R
a+w
`
pwd
`
su
-s
/bin/bash
-c
'source /test.venv/bin/activate && python setup.py test --addopts="$TEST_OPTS tests/test_immv_imcp.py"'
nobody
# All other tests can be run as normal
python setup.py
test
--addopts
=
"
$TEST_OPTS
--ignore=tests/test_idle.py --ignore=tests/test_platform.py --ignore=tests/test_immv_imcp.py"
# All other tests can be run as normal.
python setup.py
test
--addopts
=
"
$TEST_OPTS
-m 'not longtest' --ignore=tests/test_idle.py --ignore=tests/test_platform.py --ignore=tests/test_immv_imcp.py"
# Long tests are only run on release branches
if
[[
$CI_COMMIT_REF_NAME
==
v
*
]]
;
then
python setup.py
test
--addopts
=
"
$TEST_OPTS
-m 'longtest'"
fi
python
-m
coverage report
This diff is collapsed.
Click to expand it.
.gitlab-ci.yml
+
2
−
3
View file @
2e832fb7
...
...
@@ -90,9 +90,8 @@ stages:
variables
:
UPSTREAM_PROJECT
:
"
fsl/fslpy"
UPSTREAM_URL
:
"
git@git.fmrib.ox.ac.uk"
TEST_OPTS
:
"
--cov-report=
--cov-append"
UPSTREAM_PROJECT
:
"
fsl/fslpy"
UPSTREAM_URL
:
"
git@git.fmrib.ox.ac.uk"
####################################
...
...
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