Added all resources required for a Jenkins pipeline
All checks were successful
ydeng/filterfasta/pipeline/head This commit looks good

This commit is contained in:
Harrison Deng 2023-04-21 12:21:41 -05:00
parent 43787805e0
commit 6e6d7a6c43
5 changed files with 61 additions and 0 deletions

36
Jenkinsfile vendored Normal file
View File

@ -0,0 +1,36 @@
pipeline {
agent any
stages {
stage("clean") {
steps {
sh 'rm -rf ./dist/*'
}
}
stage("install") {
steps {
sh 'mamba env update --file environment.yml'
sh 'echo "mamba activate filterfasta" >> ~/.bashrc'
}
}
stage("build") {
steps {
sh "python -m build"
}
}
stage("test") {
steps {
sh "pip install dist/*.whl"
}
}
stage("publish") {
when {
branch '**/master'
}
steps {
withCredentials([usernamePassword(credentialsId: 'rs-git-package-registry-ydeng', passwordVariable: 'PASS', usernameVariable: 'USER')]) {
sh "python -m twine upload --repository-url https://git.reslate.systems/api/packages/${USER}/pypi -u ${USER} -p ${PASS} --non-interactive --disable-progress-bar --verbose dist/*"
}
}
}
}
}

9
environment.yml Normal file
View File

@ -0,0 +1,9 @@
name: filterfasta
channels:
- conda-forge
dependencies:
- build=0.7
- pytest=7
- twine=4
- biopython=1.81
- python=3.11

3
pyproject.toml Normal file
View File

@ -0,0 +1,3 @@
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "wheel"]

10
setup.cfg Normal file
View File

@ -0,0 +1,10 @@
[metadata]
name = filterfasta
version = 0.0.1
[options]
packages = filterfasta
[options.entry_points]
console_scripts =
filterfasta = filterfasta.filterfasta:main

3
setup.py Normal file
View File

@ -0,0 +1,3 @@
from setuptools import setup
setup()