Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
be4d665301 | |||
9e59bc097c |
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -8,8 +8,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage("install") {
|
stage("install") {
|
||||||
steps {
|
steps {
|
||||||
sh 'mamba env update --file environment.yml'
|
sh 'mamba env update --file environment.yml --prefix ./env || mamba env create --force --file environment.yml --prefix ./env'
|
||||||
sh 'echo "mamba activate csvbyname" >> ~/.bashrc'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("build") {
|
stage("build") {
|
||||||
@ -17,7 +16,7 @@ pipeline {
|
|||||||
sh "python -m build"
|
sh "python -m build"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("test") {
|
stage("test installation") {
|
||||||
steps {
|
steps {
|
||||||
sh "pip install dist/*.whl"
|
sh "pip install dist/*.whl"
|
||||||
sh "csvbyname -h"
|
sh "csvbyname -h"
|
||||||
@ -25,7 +24,7 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage("archive") {
|
stage("archive") {
|
||||||
steps {
|
steps {
|
||||||
archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl'
|
archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("publish package") {
|
stage("publish package") {
|
||||||
|
@ -69,7 +69,7 @@ def main():
|
|||||||
"-n",
|
"-n",
|
||||||
"--output-basename",
|
"--output-basename",
|
||||||
help='Adds a column called "basename" to the resulting CSV where it is just '
|
help='Adds a column called "basename" to the resulting CSV where it is just '
|
||||||
"The base name of the path instead of the entire path. This is not guaranteed "
|
"the base name of the path instead of the entire path. This is not guaranteed "
|
||||||
"to be unique.",
|
"to be unique.",
|
||||||
default=False,
|
default=False,
|
||||||
required=False,
|
required=False,
|
||||||
|
@ -6,3 +6,4 @@ dependencies:
|
|||||||
- pytest=7.2.2
|
- pytest=7.2.2
|
||||||
- twine=4.0.2
|
- twine=4.0.2
|
||||||
- python=3.11
|
- python=3.11
|
||||||
|
prefix: ./env
|
Loading…
Reference in New Issue
Block a user