singleDevTest.groovy 1.2 KB
Newer Older
Z
zhenwu 已提交
1
timeout(time: 60, unit: 'MINUTES') {
T
add ci  
test 已提交
2 3
    dir ("tests/milvus_python_test") {
        sh 'python3 -m pip install -r requirements.txt'
Q
quicksilver 已提交
4
        sh "pytest . --alluredir=\"test_out/dev/single/sqlite\" --level=1 --ip ${env.HELM_RELEASE_NAME}-engine.milvus.svc.cluster.local"
T
add ci  
test 已提交
5
    }
6

T
add ci  
test 已提交
7
    // mysql database backend test
Q
quicksilver 已提交
8
    // load "ci/jenkins/jenkinsfile/cleanupSingleDev.groovy"
Z
zhenwu 已提交
9 10 11

    // if (!fileExists('milvus-helm')) {
    //     dir ("milvus-helm") {
Q
quicksilver 已提交
12
    //         checkout([$class: 'GitSCM', branches: [[name: "0.6.0"]], userRemoteConfigs: [[url: "https://github.com/milvus-io/milvus-helm.git", name: 'origin', refspec: "+refs/heads/0.6.0:refs/remotes/origin/0.6.0"]]])
Z
zhenwu 已提交
13 14 15
    //     }
    // }
    // dir ("milvus-helm") {
16
    //     dir ("milvus") {
17
    //         sh "helm install --wait --timeout 300s --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP  -f ci/db_backend/mysql_${BINARY_VERSION}_values.yaml -f ci/filebeat/values.yaml --namespace milvus ${env.HELM_RELEASE_NAME} ."
Z
zhenwu 已提交
18 19 20
    //     }
    // }
    // dir ("tests/milvus_python_test") {
Q
quicksilver 已提交
21
    //     sh "pytest . --alluredir=\"test_out/dev/single/mysql\" --level=1 --ip ${env.HELM_RELEASE_NAME}-engine.milvus.svc.cluster.local"
Z
zhenwu 已提交
22
    // }
T
add ci  
test 已提交
23
}