Skip to content

Commit

Permalink
Merge branch 'fix-build' into testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Chushuhuch committed May 4, 2017
2 parents 6e26045 + 1e00563 commit 2469122
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/extra/serg_tools/copy_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ def copy_file(dest, file, igrec_dir, root):
shutil.copy2(os.path.join(root, file), dest_dir)


def exclude_broken_links(dir, files):
return [file for file in files if os.path.splitext(file)[1] == 'py']


def main():
dest = sys.argv[1]
clean = int(sys.argv[2]) > 0 if len(sys.argv) > 2 else True
Expand All @@ -30,12 +34,12 @@ def main():
igrec_dir = os.path.join(current_dir, os.pardir, os.pardir, os.pardir)
walk = list(os.walk(igrec_dir))
for root, dirs, files in walk:
for file in [file for file in files if file.endswith((".py", ".jar", ".sh"))]:
for file in [file for file in files if file.endswith((".py", ".jar", ".sh")) and 'build' not in root]:
copy_file(dest, file, igrec_dir, root)
for file in ["test_dataset/merged_reads.fastq"]:
copy_file(dest, os.path.split(file)[-1], igrec_dir, os.path.join(igrec_dir, os.path.dirname(file)))
for dir in ["build", "pipeline_makefiles", "configs", "data"]:
shutil.copytree(os.path.join(igrec_dir, dir), os.path.join(dest, dir))
shutil.copytree(os.path.join(igrec_dir, dir), os.path.join(dest, dir), exclude_broken_links)

os.system("git -C %s log | head > %s/GIT_REVISION" % (igrec_dir, dest))

Expand Down
3 changes: 2 additions & 1 deletion teamcity/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash
set -e

echo "building"
./prepare_cfg
make -j8

echo "exporting artifacts"
Expand Down

0 comments on commit 2469122

Please sign in to comment.