mirror of
https://gitee.com/milvus-io/milvus.git
synced 2025-12-06 17:18:35 +08:00
23 lines
1.3 KiB
Groovy
23 lines
1.3 KiB
Groovy
timeout(time: 30, unit: 'MINUTES') {
|
|
dir ("tests/milvus_python_test") {
|
|
sh 'python3 -m pip install -r requirements.txt'
|
|
sh "pytest . --alluredir=\"test_out/dev/single/sqlite\" --level=1 --ip ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu-milvus-gpu-engine.milvus.svc.cluster.local"
|
|
}
|
|
// mysql database backend test
|
|
load "${env.WORKSPACE}/ci/jenkins/jenkinsfile/cleanupSingleDev.groovy"
|
|
|
|
if (!fileExists('milvus-helm')) {
|
|
dir ("milvus-helm") {
|
|
checkout([$class: 'GitSCM', branches: [[name: "0.5.0"]], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: "${params.GIT_CREDENTIALS_ID}", url: "https://github.com/milvus-io/milvus-helm.git", name: 'origin', refspec: "+refs/heads/0.5.0:refs/remotes/origin/0.5.0"]]])
|
|
}
|
|
}
|
|
dir ("milvus-helm") {
|
|
dir ("milvus-gpu") {
|
|
sh "helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu -f ci/db_backend/mysql_values.yaml --namespace milvus ."
|
|
}
|
|
}
|
|
dir ("tests/milvus_python_test") {
|
|
sh "pytest . --alluredir=\"test_out/dev/single/mysql\" --level=1 --ip ${env.PIPELINE_NAME}-${env.BUILD_NUMBER}-single-gpu-milvus-gpu-engine.milvus.svc.cluster.local"
|
|
}
|
|
}
|