1
0
mirror of https://github.com/TheLocehiliosan/yadm synced 2024-10-27 20:34:27 +00:00
Commit Graph

303 Commits

Author SHA1 Message Date
Tim Byrne
a399c35e4e
Add quoting 2019-07-29 08:00:09 -05:00
Daniel Wagenknecht
b404a87a89
Replace direkt calls to git with $GIT_PROGRAM
Some calls to git ignored the yadm.gpg-program configuration option
and called the first git found in $PATH instead. Make them adhere to
the configured git program by replacing the call with $GIT_PROGRAM.
2019-07-16 21:45:14 +02:00
Tim Byrne
6df8509999
Add vim to testbed image
Having an editor within a testhost/scripthost is useful.
2019-04-16 08:04:53 -05:00
Tim Byrne
4613c1d0c4
Merge pull request #114 from bb010g/patch-1 2019-04-12 07:57:35 -05:00
Tim Byrne
d87a6502af
Factor out some branches in utils:create_alt_files() 2019-04-12 07:54:23 -05:00
Tim Byrne
7bc8f02d68
Add tests for jinja includes 2019-04-12 07:54:23 -05:00
Tim Byrne
d245f633bf
Remove invalid linked alternates (#65) 2019-04-10 09:23:34 -05:00
Tim Byrne
a2cc970dd6
Remove unnecessary Git invocations
`git ls-files` was being called multiple times during the processing of
alternates. This is now run once, and kept in an array.
2019-04-09 07:53:27 -05:00
Tim Byrne
093fc24b1b
Test that links are removed for invalid alternates (#65) 2019-04-05 08:58:59 -05:00
Tim Byrne
2375a0955b
Standardize sort order
Prevent localizations from interfering with sorting order.
2019-04-05 08:58:30 -05:00
Tim Byrne
0c6be5e398
Fix bug with alternate linked directories
Previously the tracked files were sorted, and then the files and their
parent directories were considered for possible alternates. Depending on
the length of directories and names of files, inconsistencies would
occur because the directory separator (/) would be part of the sorting.

To fix this, a unique list of tracked files and their parent directories
are sorted into a single list which is processed.
2019-04-05 08:58:30 -05:00
Tim Byrne
fb1181c8a9
Add tests for directory alternates
While this feature was added back in version 1.05, tests were never
added for it. These tests have identified bugs in the directory
alternates.
2019-04-05 08:58:22 -05:00
Tim Byrne
2aa1710214
Remove superfluous ; in comments 2019-03-24 17:22:11 -05:00
Tim Byrne
58edf313aa
Process .yadm/encrypt in sorted order 2019-03-24 17:05:11 -05:00
Tim Byrne
2848ca2d1d
Update contributing guide with website info (#146) 2019-03-24 15:48:35 -05:00
Tim Byrne
282b772ce5
Add yamllint to testenv
Also organize pip install command so software can be added/removed
easier.
2019-03-24 14:27:21 -05:00
Tim Byrne
826f9bc09e
Validate yaml files with yamllint 2019-03-21 23:05:57 -05:00
Tim Byrne
ca2f93146d
Add shields.io badges for website branches 2019-03-20 02:06:50 -05:00
Tim Byrne
9b1ac4b76b
Add shields.io badge for Arch Linux 2019-03-20 00:37:32 -05:00
Tim Byrne
eb7462061e
Allocate a pseudo-TTY
This will help color shows up in travis-ci logs.
2019-03-19 19:34:17 -05:00
Tim Byrne
af6febc598
Use language minimal
`bash` is actually an alias for `minimal` in travis-ci.
2019-03-19 17:37:15 -05:00
Tim Byrne
0ff508d046
Reduce travis-ci sudo requirement
`sudo` is not actually required.
2019-03-19 17:37:03 -05:00
Tim Byrne
402b57880d
Update GPLv3 LICENSE information
This does NOT change the licensing.
2019-03-14 18:25:02 -05:00
Tim Byrne
bd86b66ea8
Update README
* Add shield.io badges
* Add brief description
* Change website to yadm.io
2019-03-14 18:22:02 -05:00
Tim Byrne
f3e4c7d140
Add contribution guideline 2019-03-14 08:22:16 -05:00
Tim Byrne
19c6eb6009
Add GitHub templates 2019-03-13 17:32:29 -05:00
Tim Byrne
b443bbede2
Add contrib/hooks 2019-03-12 22:07:25 -05:00
Tim Byrne
abcc201894
Improve Makefile usage info 2019-03-11 23:20:40 -05:00
Tim Byrne
27859af307
Add make target "scripthost"
Hopefully this target will help others demonstrate problems in a
reproducible way.
2019-03-01 08:07:30 -06:00
Tim Byrne
d32e63fc92
Split packages onto separate lines
This will make it easier to see the changes in the dependencies included
in the yadm/testbed image.
2019-03-01 08:07:30 -06:00
Tim Byrne
7e7d199721
Add code of conduct
Adapted from the www.contributor-covenant.org
2019-02-27 08:12:43 -06:00
Tim Byrne
c3a9b62189
Remove BATS-based tests 2019-02-25 17:08:07 -06:00
Tim Byrne
23e4b38ef2
Update Makefile
* Add usage/help
* Check for dependencies in testing targets
* Remove bats-based targets
* Change location of testenv
2019-02-25 16:32:34 -06:00
Tim Byrne
0f2039f79d
Create a flag to identify when running inside testbed 2019-02-25 16:30:05 -06:00
Tim Byrne
e7f9616b39
Rewrite testing system (#119)
The new test system is written with py.test. These tests are more
comprehensive, run faster by an order of magnitude, and are far more
maintainable. The tests themselves conform to PEP8.
2019-02-20 07:48:25 -06:00
Brayden Banks
0b9f537909
Allow for more complex Jinja templates
By calling envtpl with a filename, Jinja can perform includes, which is useful for more general machine configuration.
2018-06-11 19:31:10 -07:00
Ross Smith II
54f7cbcebe Fix OS name match for Cygwin/Msys 2018-03-05 07:02:46 -08:00
Ross Smith II
315ad0873e Fix OS check to match (Cygwin|Msys)* 2018-03-04 06:34:08 -08:00
Ross Smith II
adfedf4b64 Add Mingw/Msys support 2018-03-03 20:02:45 -08:00
Tim Byrne
09a018ea5a
Release 1.12.0
Update version number and update documentation

* Add basic Zsh completion (#71, #79)
* Support directories in `.yadm/encrypt` (#81, #82)
* Support exclusions in `.yadm/encrypt` (#86)
* Improve portability with printf (#87)
* Eliminate usage of `eval` and `ls`
2017-10-24 22:12:23 -05:00
Tim Byrne
8af5425dc3
Capitalize headings 2017-10-24 07:40:40 -05:00
Tim Byrne
805d7647a8
Update documentation to reflect new .yadm/encrypt functionality 2017-10-24 07:38:13 -05:00
Tim Byrne
db9c00287b
Fix contrib target 2017-10-16 17:36:14 -05:00
Tim Byrne
75e0bf94bb
Merge pull request #91 from luzat/fix-whitespace 2017-10-16 17:24:22 -05:00
Thomas Luzat
ac2aed9ab4
Indentation: Convert tab to space 2017-10-09 15:21:32 +02:00
Tim Byrne
d411db9f6f
Consolidate cd to YADM_WORK 2017-09-22 12:30:24 -05:00
Tim Byrne
c24906ec10
Handle exclusions in .yadm/encrypt (#86) 2017-09-21 14:21:23 -05:00
Tim Byrne
2517e4b4ac
Add test-case for exclusions in .yadm/encrypt (#86) 2017-09-21 14:21:22 -05:00
Tim Byrne
cc30dfc24b
Re-number unit tests 2017-09-16 09:33:12 -05:00
Tim Byrne
f23bdb8147
Remove last use of LS_PROGRAM
Globs are not determined by an `eval` of `ls` anymore. The only other
use of `ls` can be replaced with a simple `printf`.
2017-09-16 09:33:12 -05:00