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());
}
}
Aggregations