コード例 #1
0
ファイル: build_commands.py プロジェクト: darian19/what
  createOrReplaceArtifactsDir
)
from infrastructure.utilities import logger as log
from infrastructure.utilities import s3
from infrastructure.utilities.env import addNupicCoreToEnv
from infrastructure.utilities.exceptions import (
  CommandFailedError,
  NupicBuildFailed,
  PipelineError
)
from infrastructure.utilities.path import changeToWorkingDir
from infrastructure.utilities.cli import runWithOutput



SCRIPTS_DIR = os.path.join(YOMP.getGitRootFolder(), "nupic-pipeline", "scripts")
ARTIFACTS_DIR = createOrReplaceArtifactsDir()

DOXYFILE = "docs/Doxyfile"
INIT_FILE = "nupic/__init__.py"
VERSION_FILE = "VERSION"

g_config = yaml.load(
            resource_stream(__name__, "../../../conf/nupic/config.yaml"))



def fetchNuPIC(env, buildWorkspace, nupicRemote, nupicBranch, nupicSha, logger):
  """
    This method clones NuPIC repo if it is not present
    and checks out to required nupicBranch
コード例 #2
0
ファイル: build_commands.py プロジェクト: bopopescu/what
import yaml

from infrastructure.utilities import YOMP
from infrastructure.utilities.jenkins import (createOrReplaceResultsDir,
                                              createOrReplaceArtifactsDir)
from infrastructure.utilities import logger as log
from infrastructure.utilities import s3
from infrastructure.utilities.env import addNupicCoreToEnv
from infrastructure.utilities.exceptions import (CommandFailedError,
                                                 NupicBuildFailed,
                                                 PipelineError)
from infrastructure.utilities.path import changeToWorkingDir
from infrastructure.utilities.cli import runWithOutput

SCRIPTS_DIR = os.path.join(YOMP.getGitRootFolder(), "nupic-pipeline",
                           "scripts")
ARTIFACTS_DIR = createOrReplaceArtifactsDir()

DOXYFILE = "docs/Doxyfile"
INIT_FILE = "nupic/__init__.py"
VERSION_FILE = "VERSION"

g_config = yaml.load(
    resource_stream(__name__, "../../../conf/nupic/config.yaml"))


def fetchNuPIC(env, buildWorkspace, nupicRemote, nupicBranch, nupicSha,
               logger):
    """
    This method clones NuPIC repo if it is not present