singleDevNightlyTest.groovy 1.3 KB
Newer Older
1 2 3
timeout(time: 90, unit: 'MINUTES') {
    dir ("tests/milvus_python_test") {
        sh 'python3 -m pip install -r requirements.txt'
Q
quicksilver 已提交
4
        sh "pytest . --alluredir=\"test_out/dev/single/sqlite\" --ip ${env.PIPELINE_NAME}-${env.SEMVER}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION}-engine.milvus.svc.cluster.local"
5 6
    }
    // mysql database backend test
Q
quicksilver 已提交
7
    load "ci/jenkins/jenkinsfile/cleanupSingleDev.groovy"
8

9 10
    if (!fileExists('milvus-helm')) {
        dir ("milvus-helm") {
Q
quicksilver 已提交
11
            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"]]])
12 13 14 15
        }
    }
    dir ("milvus-helm") {
        dir ("milvus") {
Q
quicksilver 已提交
16
            sh "helm install --wait --timeout 300 --set engine.image.tag=${DOCKER_VERSION} --set expose.type=clusterIP --name ${env.PIPELINE_NAME}-${env.SEMVER}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION} -f ci/db_backend/mysql_${env.BINRARY_VERSION}_values.yaml -f ci/filebeat/values.yaml --namespace milvus ."
17 18 19
        }
    }
    dir ("tests/milvus_python_test") {
Q
quicksilver 已提交
20
        sh "pytest . --alluredir=\"test_out/dev/single/mysql\" --ip ${env.PIPELINE_NAME}-${env.SEMVER}-${env.BUILD_NUMBER}-single-${env.BINRARY_VERSION}-engine.milvus.svc.cluster.local"
21
    }
22
}