Compare commits

...

2 Commits

Author SHA1 Message Date
Dustin 5f10e80b46 setup: Include templates in binary distribution 2018-07-27 08:30:04 -05:00
Dustin 007a3e556a ci: Add Jenkins pipeline 2018-07-27 08:30:04 -05:00
4 changed files with 48 additions and 0 deletions

9
ci/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM fedora:28
RUN dnf install -y \
openssh-clients \
python3-pip \
python3-wheel \
rsync
RUN useradd -l -u 3000018 -d /var/lib/jenkins jenkins

28
ci/Jenkinsfile vendored Normal file
View File

@ -0,0 +1,28 @@
pipeline {
agent {
dockerfile {
dir 'ci'
}
}
triggers {
pollSCM ''
}
environment {
PUBLISH_HOST = 'web0.pyrocufflink.blue'
PUBLISH_USER = 'webapp.dcow'
}
stages {
stage('Publish') {
steps {
sh 'pip3 wheel -w dist .'
sshagent(['jenkins-web']) {
sh "ssh -oStrictHostKeyChecking=no ${PUBLISH_USER}@${PUBLISH_HOST} :"
sh '. ci/publish.sh'
}
}
}
}
}

6
ci/publish.sh Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
rsync -rti dist/ ${PUBLISH_USER}@${PUBLISH_HOST}:wheelhouse \
--include '*.whl' --exclude '**'
ssh ${PUBLISH_USER}@${PUBLISH_HOST} \
venv/bin/pip install --upgrade --force-reinstall --no-index -f wheelhouse DarkChestOfWonders

View File

@ -10,6 +10,11 @@ setup(
license='MIT', license='MIT',
packages=find_packages('src'), packages=find_packages('src'),
package_dir={'': 'src'}, package_dir={'': 'src'},
package_data={
'dcow': [
'templates',
],
},
install_requires=[ install_requires=[
'Jinja2', 'Jinja2',
'Milla', 'Milla',