Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BOUT-dev
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
Service Desk
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
David Bold
BOUT-dev
Commits
dd736a6b
Commit
dd736a6b
authored
4 years ago
by
David Schwörer
Browse files
Options
Downloads
Patches
Plain Diff
add instructions for deploying
parent
d6c46f22
Branches
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
.gitlab-ci.yml
+21
-3
21 additions, 3 deletions
.gitlab-ci.yml
tools/pylib/_boutcore_build/build-wheels.sh
+16
-4
16 additions, 4 deletions
tools/pylib/_boutcore_build/build-wheels.sh
with
37 additions
and
7 deletions
.gitlab-ci.yml
+
21
−
3
View file @
dd736a6b
image
:
quay.io/pypa/manylinux2014_x86_64
stages
:
-
test
-
build
-
deploy
manylinux2014
:
wheel/manylinux2014
:
stage
:
build
image
:
quay.io/pypa/manylinux2014_x86_64
script
:
-
bash --login tools/pylib/_boutcore_build/build-wheels.sh manylinux2014_x86_64
artifacts
:
paths
:
-
/io/wheelhouse/*whl
-
wheelhouse/*whl
-
dist/*.tar.*
deploy/pypi
:
stage
:
deploy
image
:
python:slim
script
:
# TWINE_USERNAME and TWINE_PASSWORD are provided by CI secret variables
-
pip install twine
-
ls -l
-
twine upload --repository testpypi wheelhouse/*.whl
needs
:
-
wheel/manylinux2014
This diff is collapsed.
Click to expand it.
tools/pylib/_boutcore_build/build-wheels.sh
+
16
−
4
View file @
dd736a6b
set
-ex
yum
-y
install
mpich-devel fftw-devel netcdf-cxx-devel
yum
-y
install
fftw-devel netcdf-cxx-devel
yum
-y
install
openmpi3-devel
||
yum
-y
install
openmpi-1.10-devel
if
!
module load mpi
;
then
.
/etc/profile
module load mpi
...
...
@@ -21,7 +22,7 @@ function repair_wheel {
fi
}
for
PYBIN
in
/opt/python/
*
/bin
;
for
PYBIN
in
/opt/python/
cp3
*
/bin
;
do
make clean
$PYBIN
/pip
install
numpy cython
...
...
@@ -29,13 +30,16 @@ do
"
${
PYBIN
}
/pip"
wheel
.
--no-deps
-w
wheelhouse/
done
# Build sdist
$PYBIN
/python setup.py sdist
||
:
for
whl
in
wheelhouse/
*
.whl
;
do
LD_LIBRARY_PATH
=
$(
pwd
)
/../../../lib/ repair_wheel
"
$whl
"
LD_LIBRARY_PATH
=
$
LD_LIBRARY_PATH
:
$
(
pwd
)
/../../../lib/ repair_wheel
"
$whl
"
done
ls
-l
/io/wheelhouse
for
PYBIN
in
/opt/python/
*
/bin/
;
do
for
PYBIN
in
/opt/python/
cp3
*
/bin/
;
do
"
${
PYBIN
}
/pip"
install
$NAME
--no-index
-f
/io/wheelhouse
if
test
-e
"
${
PYBIN
}
/nosetests"
then
...
...
@@ -45,3 +49,11 @@ for PYBIN in /opt/python/*/bin/; do
)
fi
done
ls
-l
wheelhouse
||
:
mkdir
-p
wheelhouse
rm
-f
wheelhouse/
*
whl
ls
-l
wheelhouse
cp
/io/wheelhouse/
*
whl wheelhouse/
ls
-l
wheelhouse
ls
-l
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