Compare commits
1 Commits
4eed6a3f82
...
2a6148cdfe
Author | SHA1 | Date |
---|---|---|
|
2a6148cdfe |
|
@ -0,0 +1,8 @@
|
|||
FROM fedora
|
||||
|
||||
RUN dnf install -y \
|
||||
libjpeg-devel \
|
||||
python3-devel \
|
||||
redhat-rpm-config \
|
||||
zlib-devel \
|
||||
--
|
|
@ -0,0 +1,27 @@
|
|||
pipeline {
|
||||
agent {
|
||||
dockerfile {
|
||||
dir 'ci'
|
||||
}
|
||||
}
|
||||
|
||||
environment {
|
||||
PUBLISH_HOST = 'file0.pyrocufflink.blue'
|
||||
XDG_CACHE_DIR = "${WORKSPACE}"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh '. ci/build.sh'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Publish') {
|
||||
steps {
|
||||
sh '. ci/publish.sh'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
rm -rf .venv
|
||||
python3 -m venv .venv
|
||||
|
||||
.venv/bin/pip install --upgrade pip setuptools wheel
|
||||
.venv/bin/pip wheel -w dist -r requirements.txt
|
|
@ -0,0 +1,3 @@
|
|||
: ${PUBLISH_PATH:-/var/lib/wheels}
|
||||
|
||||
rsync -aP --delete --include '*.whl' dist/ ${PUIBLISH_HOST}:${PUBLISH_PATH%/}/
|
Loading…
Reference in New Issue