summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2015-08-18 09:25:57 +0200
committerParménides GV <parmegv@sdf.org>2015-08-18 09:25:57 +0200
commit6b12bf097088befac4ae83573590ed0f444f8f5a (patch)
tree54d5d3c9cf09bd76500aa03823429b355e20ab00
parentb2cbf294a5e66b65df0ed7a3ed3ab36a259cad71 (diff)
[feat] Clean repos and git clone --depth 1
We had problems with some pyc files that corresponded to deleted source files. With this, we remove them.
-rw-r--r--master.cfg8
1 files changed, 4 insertions, 4 deletions
diff --git a/master.cfg b/master.cfg
index 366183c..cbbd0a8 100644
--- a/master.cfg
+++ b/master.cfg
@@ -156,7 +156,7 @@ def add_repo_to_factory(factory, repo_name, git_branch, namespace, venv_name):
repo_url = github_repo_url(repo_name)
factory.addStep(
- Git(repourl=repo_url, branch=git_branch, workdir=workdir, codebase=repo_name, mode='incremental', method='clean', haltOnFailure=True, name="Pull " + repo_url))
+ Git(repourl=repo_url, branch=git_branch, workdir=workdir, codebase=repo_name, mode='full', method='clobber', shallow=True, haltOnFailure=True, name="Pull " + repo_url))
if 'bitmask_client' in repo_name:
factory.addSteps([
@@ -333,7 +333,7 @@ def make_wheel_builder():
repo_url = github_repo_url(repo_name)
workdir = repo_name
factory.addStep(
- Git(repourl=repo_url, branch=git_branch, workdir=workdir, mode='incremental', method='clean', haltOnFailure=True, name="Pull " + repo_url))
+ Git(repourl=repo_url, branch=git_branch, workdir=workdir, mode='full', method='clobber', shallow=True, haltOnFailure=True, name="Pull " + repo_url))
if 'soledad' in repo_name:
for subpackage in ["common", "client", "server"]:
factory.addStep(
@@ -364,7 +364,7 @@ def add_pyside_setup_repo(factory):
publish_pyside_wheel = publish_pyside_command('`ls -t *.whl | head -1`')
factory.addSteps([
ShellCommand(command=['rm', '-rf', repo_name], workdir='.', env=sandbox_path, name="Remove previous pyside"),
- Git(repourl=repo_url, branch=git_branch, workdir=repo_name, mode='incremental', method='clean', haltOnFailure=True, name="Pull " + repo_url),
+ Git(repourl=repo_url, branch=git_branch, workdir=repo_name, mode='full', method='clobber', shallow=True, haltOnFailure=True, name="Pull " + repo_url),
ShellCommand(command=['python', 'setup.py', 'bdist_wheel', '--standalone'], workdir=repo_name, env=sandbox_path, name="Wheel for " + repo_name),
ShellCommand(command=publish_pyside_wheel, workdir=repo_name + '/dist/', name="Publish pyside")
])
@@ -390,7 +390,7 @@ def make_bundler_builder():
publish_bundle = publish_bundle_command('`ls -t *.tar.gz | head -1`')
factory.addSteps([
- Git(repourl=repo_url, branch=branch, workdir=repo_dir, mode='incremental', method='clean', haltOnFailure=True, name="Pull " + repo_url),
+ Git(repourl=repo_url, branch=branch, workdir=repo_dir, mode='full', method='clobber', shallow=True, haltOnFailure=True, name="Pull " + repo_url),
ShellCommand(command="rm -rf " + bundler_output_dir, workdir=workdir, name="Remove previous bundler dir"),
ShellCommand(command="mkdir " + bundler_output_dir, workdir=workdir, name="Create bundler dir"),
ShellCommand(command="cp bundle_pyinstaller.sh ../" + bundler_output_dir, workdir=repo_dir, haltOnFailure=True, name="Copy bundle_pyinstaller"),