Search in sources :

Example 1 with PipDriver

use of org.jfrog.build.extractor.pip.PipDriver in project build-info by JFrogDev.

the class PipExtractorTest method setUp.

@BeforeClass
private void setUp() {
    artifactoryManagerBuilder = new ArtifactoryManagerBuilder().setServerUrl(getArtifactoryUrl()).setUsername(getUsername()).setPassword(getAdminToken()).setLog(getLog());
    // Read pip environment path variable.
    pipEnvVar = System.getenv(BITESTS_ARTIFACTORY_ENV_VAR_PREFIX + "PIP_ENV");
    if (pipEnvVar == null) {
        fail("Couldn't read pip virtual-environment variable: " + BITESTS_ARTIFACTORY_ENV_VAR_PREFIX + "PIP_ENV");
    }
    // Initialize driver and validate empty virtual-environment for pip execution.
    try {
        env = getUpdatedEnvPath();
        driver = new PipDriver("pip", env);
        validateEmptyPipEnv(driver);
    } catch (IOException e) {
        fail(e.getMessage());
    }
}
Also used : ArtifactoryManagerBuilder(org.jfrog.build.extractor.clientConfiguration.ArtifactoryManagerBuilder) PipDriver(org.jfrog.build.extractor.pip.PipDriver) IOException(java.io.IOException) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

IOException (java.io.IOException)1 ArtifactoryManagerBuilder (org.jfrog.build.extractor.clientConfiguration.ArtifactoryManagerBuilder)1 PipDriver (org.jfrog.build.extractor.pip.PipDriver)1 BeforeClass (org.testng.annotations.BeforeClass)1