Added all resources required for a Jenkins pipeline
All checks were successful
ydeng/filterfasta/pipeline/head This commit looks good
All checks were successful
ydeng/filterfasta/pipeline/head This commit looks good
This commit is contained in:
parent
43787805e0
commit
6e6d7a6c43
36
Jenkinsfile
vendored
Normal file
36
Jenkinsfile
vendored
Normal 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
9
environment.yml
Normal 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
3
pyproject.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[build-system]
|
||||
build-backend = "setuptools.build_meta"
|
||||
requires = ["setuptools", "wheel"]
|
10
setup.cfg
Normal file
10
setup.cfg
Normal file
@ -0,0 +1,10 @@
|
||||
[metadata]
|
||||
name = filterfasta
|
||||
version = 0.0.1
|
||||
|
||||
[options]
|
||||
packages = filterfasta
|
||||
|
||||
[options.entry_points]
|
||||
console_scripts =
|
||||
filterfasta = filterfasta.filterfasta:main
|
Loading…
x
Reference in New Issue
Block a user