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
4074af67
Commit
4074af67
authored
1 year ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
CI: update doc/dist build commands, remove some cruft
parent
ed2da774
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.ci/build_doc.sh
+5
-4
5 additions, 4 deletions
.ci/build_doc.sh
.ci/build_pypi_dist.sh
+5
-3
5 additions, 3 deletions
.ci/build_pypi_dist.sh
.ci/setup_ssh.sh
+1
-16
1 addition, 16 deletions
.ci/setup_ssh.sh
.ci/test_template.sh
+4
-23
4 additions, 23 deletions
.ci/test_template.sh
with
15 additions
and
46 deletions
.ci/build_doc.sh
+
5
−
4
View file @
4074af67
...
...
@@ -2,7 +2,8 @@
set
-e
pip
install
-r
requirements-dev.txt
python setup.py doc
mkdir
-p
public
mv
doc/html/
*
public/
source
/test.env/bin/activate
pip
install
".[doc]"
sphinx build doc public
This diff is collapsed.
Click to expand it.
.ci/build_pypi_dist.sh
+
5
−
3
View file @
4074af67
...
...
@@ -2,9 +2,11 @@
set
-e
pip
install
wheel setuptools twine
python setup.py sdist
python setup.py bdist_wheel
source
/test.venv/bin/activate
pip
install
--upgrade
pip wheel setuptools twine build
python
-m
build
twine check dist/
*
# do a test install from both source and wheel
...
...
This diff is collapsed.
Click to expand it.
.ci/setup_ssh.sh
+
1
−
16
View file @
4074af67
...
...
@@ -46,10 +46,6 @@ if [[ -f /.dockerenv ]]; then
echo
"
$SSH_PRIVATE_KEY_GIT
"
>
$HOME
/.ssh/id_git
;
echo
"
$SSH_PRIVATE_KEY_FSL_DOWNLOAD
"
>
$HOME
/.ssh/id_fsl_download
;
if
[[
"
$CI_PROJECT_PATH
"
==
"
$UPSTREAM_PROJECT
"
]]
;
then
echo
"
$SSH_PRIVATE_KEY_DOC_DEPLOY
"
>
$HOME
/.ssh/id_doc_deploy
;
fi
;
chmod
go-rwx
$HOME
/.ssh/id_
*
;
ssh-add
$HOME
/.ssh/id_git
;
...
...
@@ -59,21 +55,10 @@ if [[ -f /.dockerenv ]]; then
ssh-add
$HOME
/.ssh/id_doc_deploy
;
fi
ssh-keyscan
${
UPSTREAM_URL
##*@
}
>>
$HOME
/.ssh/known_hosts
;
ssh-keyscan
${
DOC_HOST
##*@
}
>>
$HOME
/.ssh/known_hosts
;
ssh-keyscan
${
FSL_HOST
##*@
}
>>
$HOME
/.ssh/known_hosts
;
ssh-keyscan
${
FSL_HOST
##*@
}
>>
$HOME
/.ssh/known_hosts
;
touch
$HOME
/.ssh/config
;
echo
"Host
${
UPSTREAM_URL
##*@
}
"
>>
$HOME
/.ssh/config
;
echo
" User
${
UPSTREAM_URL
%@*
}
"
>>
$HOME
/.ssh/config
;
echo
" IdentityFile
$HOME
/.ssh/id_git"
>>
$HOME
/.ssh/config
;
echo
"Host docdeploy"
>>
$HOME
/.ssh/config
;
echo
" HostName
${
DOC_HOST
##*@
}
"
>>
$HOME
/.ssh/config
;
echo
" User
${
DOC_HOST
%@*
}
"
>>
$HOME
/.ssh/config
;
echo
" IdentityFile
$HOME
/.ssh/id_doc_deploy"
>>
$HOME
/.ssh/config
;
echo
"Host fsldownload"
>>
$HOME
/.ssh/config
;
echo
" HostName
${
FSL_HOST
##*@
}
"
>>
$HOME
/.ssh/config
;
echo
" User
${
FSL_HOST
%@*
}
"
>>
$HOME
/.ssh/config
;
...
...
This diff is collapsed.
Click to expand it.
.ci/test_template.sh
+
4
−
23
View file @
4074af67
...
...
@@ -2,34 +2,14 @@
set
-e
# Temporary: this should be done
# in docker image definition
apt
install
-y
locales
locale-gen en_US.UTF-8
locale-gen en_GB.UTF-8
update-locale
# If running on a fork repository, we merge in the
# upstream/master branch. This is done so that merge
# requests from fork to the parent repository will
# have unit tests run on the merged code, something
# which gitlab CE does not currently do for us.
if
[[
"
$CI_PROJECT_PATH
"
!=
"
$UPSTREAM_PROJECT
"
]]
;
then
git fetch upstream
;
git merge
--no-commit
--no-ff
-s
recursive
-X
ours upstream/master
;
fi
;
source
/test.venv/bin/activate
pip
install
--retries
10
-r
requirements.txt
pip
install
--retries
10
-r
requirements-extra.txt
pip
install
--retries
10
-r
requirements-dev.txt
pip
install
".[extra,test,style]"
# style stage
if
[
"
$TEST_STYLE
"
x
!=
"x"
]
;
then
pip
install
--retries
10 pylint flake8
;
fi
;
if
[
"
$TEST_STYLE
"
x
!=
"x"
]
;
then
flake8 fsl
||
true
;
fi
;
if
[
"
$TEST_STYLE
"
x
!=
"x"
]
;
then
pylint
--output-format
=
colorized fsl
||
true
;
fi
;
if
[
"
$TEST_STYLE
"
x
!=
"x"
]
;
then
exit
0
;
fi
if
[
"
$TEST_STYLE
"
x
!=
"x"
]
;
then
exit
0
;
fi
;
# We need the FSL atlases for the atlas
# tests, and need $FSLDIR to be defined
...
...
@@ -37,7 +17,8 @@ export FSLDIR=/fsl/
mkdir
-p
$FSLDIR
/data/
rsync
-rv
"fsldownload:
$FSL_ATLAS_DIR
"
"
$FSLDIR
/data/atlases/"
# Finally, run the damned tests.
# Run the tests. Suppress coverage
# reporting until after we're finished.
TEST_OPTS
=
"--cov-report= --cov-append"
# We run some tests under xvfb-run
...
...
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