wtsi-hgi/git-common-sync

Name: git-common-sync

Owner: Wellcome Trust Sanger Institute - Human Genetics Informatics

Description: A tool to synchronise common files between Git repositories

Created: 2017-06-20 17:31:21.0

Updated: 2017-07-19 09:32:30.0

Pushed: 2017-09-26 13:25:55.0

Homepage:

Size: 110

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status codecov PyPI version

Git Common Sync

A tool to synchronise common files between Git repositories.

Features
How to use
Prerequisites
Installation
Ansible Module
tcommonsync:
repository: http://www.example.com/repository.git
author_name: Ansible Synchroniser
author_email: team@example.com
key_file: /custom/id_rsa
files:
  - src: /example/README.md
    dest: README.md
    overwrite: false
  - src: /example/directory/
    dest: config
templates:
  - src: /example/ansible-groups.sh.j2
    dest: ci/before_scripts.d/start.sh
    variables:
      message: "Hello world"
    overwrite: true
subrepos:
  - src: http://www.example.com/other-repository.git
    dest: subrepos/other-repository
    branch: master
    overwrite: true
Development
Setup

Install both library dependencies and the dependencies needed for testing:

p install -q -r requirements.txt
p install -q -r test_requirements.txt
Testing

To run the tests and generate a coverage report with unittest:

st-runner.sh

If you wish to run the tests inside a Docker container (recommended), build Docker.test.

Alternatives
License

MIT license.

Copyright (c) 2017 Genome Research Limited


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.