Added publishing to personal git repo
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				automlst.cli/pipeline/head There was a failure building this commit
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	automlst.cli/pipeline/head There was a failure building this commit
				
			This commit is contained in:
		
							
								
								
									
										12
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								Jenkinsfile
									
									
									
									
										vendored
									
									
								
							@@ -2,14 +2,14 @@ pipeline {
 | 
				
			|||||||
    agent {
 | 
					    agent {
 | 
				
			||||||
        kubernetes {
 | 
					        kubernetes {
 | 
				
			||||||
            cloud 'rsys-devel'
 | 
					            cloud 'rsys-devel'
 | 
				
			||||||
            defaultContainer 'pip'
 | 
					            defaultContainer 'miniforge3'
 | 
				
			||||||
            inheritFrom 'pip'
 | 
					            inheritFrom 'miniforge'
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    stages {
 | 
					    stages {
 | 
				
			||||||
        stage("install") {
 | 
					        stage("install") {
 | 
				
			||||||
            steps {
 | 
					            steps {
 | 
				
			||||||
                sh 'python -m pip install -r requirements.txt'
 | 
					                sh 'conda env update -n base -f environment.yml'
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        stage("unit tests") {
 | 
					        stage("unit tests") {
 | 
				
			||||||
@@ -22,11 +22,14 @@ pipeline {
 | 
				
			|||||||
        stage("build") {
 | 
					        stage("build") {
 | 
				
			||||||
            steps {
 | 
					            steps {
 | 
				
			||||||
                sh "python -m build"
 | 
					                sh "python -m build"
 | 
				
			||||||
 | 
					                sh "grayskull pypi dist/*.tar.gz --maintainers 'Harrison Deng'"
 | 
				
			||||||
 | 
					                sh "python scripts/patch_recipe.py"
 | 
				
			||||||
 | 
					                sh 'conda build autobigs-cli -c bioconda --output-folder conda-bld --verify'
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        stage("archive") {
 | 
					        stage("archive") {
 | 
				
			||||||
            steps {
 | 
					            steps {
 | 
				
			||||||
                archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
 | 
					                archiveArtifacts artifacts: 'dist/*.tar.gz, dist/*.whl, conda-bld/**/*.conda', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        stage("publish") {
 | 
					        stage("publish") {
 | 
				
			||||||
@@ -42,6 +45,7 @@ pipeline {
 | 
				
			|||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    steps {
 | 
					                    steps {
 | 
				
			||||||
                        sh script: 'python -m twine upload --repository-url https://git.reslate.systems/api/packages/ydeng/pypi -u ${CREDS_USR} -p ${CREDS_PSW} --non-interactive --disable-progress-bar --verbose dist/*'
 | 
					                        sh script: 'python -m twine upload --repository-url https://git.reslate.systems/api/packages/ydeng/pypi -u ${CREDS_USR} -p ${CREDS_PSW} --non-interactive --disable-progress-bar --verbose dist/*'
 | 
				
			||||||
 | 
					                        sh 'curl --user ${CREDS_USR}:${CREDS_PSW} --upload-file conda-bld/**/*.conda https://git.reslate.systems/api/packages/${CREDS_USR}/conda/$(basename conda-bld/**/*.conda)'
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
                stage ("pypi.org") {
 | 
					                stage ("pypi.org") {
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										12
									
								
								environment.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								environment.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					name: base
 | 
				
			||||||
 | 
					channels:
 | 
				
			||||||
 | 
					  - bioconda
 | 
				
			||||||
 | 
					  - conda-forge
 | 
				
			||||||
 | 
					dependencies:
 | 
				
			||||||
 | 
					  - pytest
 | 
				
			||||||
 | 
					  - pytest-asyncio
 | 
				
			||||||
 | 
					  - python-build
 | 
				
			||||||
 | 
					  - conda-build
 | 
				
			||||||
 | 
					  - twine==6.0.1
 | 
				
			||||||
 | 
					  - setuptools_scm
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
		Reference in New Issue
	
	Block a user