summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAge
* Make error for empty config a little friendlierAnish Athalye2020-06-25
| | | | | | | | | | | | | | | In the setup guide in the README, we have people start out with an empty file (created using `touch`). Before this patch, Dotbot gave the following error: Configuration file must be a list of tasks Instead, with this patch, Dotbot says: Configuration file is empty, no work to do This change was prompted by https://github.com/anishathalye/dotbot/pull/226.
* Add --only and --except command-line argumentsAnish Athalye2020-03-26
| | | | | | Internal to Dotbot, we use the name "skip" instead of "except", because the latter is a keyword, and using a name like "except_" didn't seem as nice.
* Merge branch 'ypid/add/link_real_path_option'Anish Athalye2020-01-03
|\
| * Add tests for canonicalize-pathAnish Athalye2020-01-03
| |
* | Unify Vagrant and Travis-CI testsAnish Athalye2020-01-03
|/ | | | | | | | | | This patch makes the tests (including the test driver) run entirely inside Vagrant, which avoids calling the very slow `vagrant` driver many times for running the tests. On my machine, `./test` runs in 22 seconds, down from hundreds of seconds prior to this patch. This also has the nice side effect of matching how the Travis CI tests were run, so there's no need for a separate `test_travis` anymore.
* Add option to clean recursivelyAnish Athalye2019-12-31
|
* Fix clean not respecting defaultsAnish Athalye2019-12-31
| | | | | | | | | | Previously, clean read the defaults once, and then it updated the setting for each entry it read. This resulted in the defaults being clobbered and then not being respected for subsequent entries. This patch fixes the issue by re-reading the defaults before processing each item. The other plugins (link, shell) do not have this problem.
* Add ignore-missing option to linkAlbert Puig2019-12-31
|
* Replace `which` with `command -v`Paulo Fagundes2019-11-09
| | | | | | | | | Some distributions such as Arch Linux no longer install `which` by default through the base package (see https://www.archlinux.org/news/base-group-replaced-by-mandatory-base-package-manual-intervention-required/). The maintainers have explained why `command -v` is superior: https://www.reddit.com/r/archlinux/comments/de1er6/arch_linux_news_base_group_replaced_by_mandatory/f2v8uhu/.
* Merge branch 'jesseleite/create-directive'Anish Athalye2019-10-12
|\
| * Add 'create' directive to create directoriesJesse Leite2019-10-12
| |
* | Switch to more recent version of DebianAnish Athalye2019-10-12
|/
* Merge branch 'thtliife/suppress-shell-cmd'Anish Athalye2018-11-21
|\
| * Add testAnish Athalye2018-11-21
| |
* | Add testAnish Athalye2018-11-19
| |
* | Add test for conditional linkingAnish Athalye2018-10-16
| |
* | Implement conditional linkingBen Klein2018-10-16
| |
* | Add test for environment variable expansionAnish Athalye2018-08-06
| |
* | Include built-in plugins in PyPI distributionAnish Athalye2018-06-11
| |
* | Add PyPI packageAnish Athalye2018-05-30
| | | | | | | | | | This patch also makes the '-d' argument optional, with the base directory defaulting to the directory of the configuration file.
| |
| \
*-. \ Merge branches 'yaml' and 'basedir'Anish Athalye2018-05-29
|\ \ \
| | * | Fix handling of base directoryAnish Athalye2018-05-24
| |/ / |/| | | | | | | | | | | | | | | | | | | | Prior to this patch, Dotbot was relying on running with the base directory being the current working directory. In practice, it was relying on the install shim to set up this context. It makes more sense sense to actually execute `chdir()` within Dotbot itself, rather than relying on the install shim to do so.
| * | Point PyYAML dependency to official repositoryAnish Athalye2018-05-24
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, PyYAML was hosted on BitBucket, so we had a mirror of the repo on GitHub. Now, official hosting has moved to GitHub, so we can point to the official repository instead. Thanks to Marco A. Feliu <marco.feliu@nianet.org> for pointing this out. This patch also updates the install shim to update submodule URLs. To preserve the functionality of earlier Dotbot versions, we will need to maintain 'https://github.com/anishathalye/pyyaml'. Because old versions of the install shim used with new Dotbot versions will not update submodule URLs, we will need to keep the old repository in sync with the upstream repository as we upgrade PyYAML versions. This patch also upgrades the dependency to PyYAML 3.12.
* | Fix tests on Travis CIAnish Athalye2018-04-13
| | | | | | | | | | | | The tests were failing due to the '~/bin' directory already existing on the machine. This patch changes the tests to use the directory name 'foo'.
* | Add tests for globbingAnish Athalye2018-04-13
| |
* | Fix bug in test harnessAnish Athalye2018-03-27
| | | | | | | | | | | | | | | | | | | | | | | | Because 'bin/dotbot' is a hybrid sh/Python script that finds the appropriate Python binary and then runs, the test code should not invoke it as an sh script when sh does not source the pyenv initialization script. The fix implemented in this patch is to directly run 'bin/dotbot' as a Python script using 'python', which when called from bash, will run with the correct Python version (because bash is set up to source the pyenv initialization script).
* | Speed up Vagrant testsAnish Athalye2018-03-27
| | | | | | | | | | | | | | | | | | | | | | | | This patch removes the snapshot/rollback system for the tests and replaces it with a simple cleanup script that removes the appropriate files from the VM's $HOME before every test. A side benefit is that there is no more dependency on the Sahara plugin. The cleanup script may not provide as good isolation between independent tests as the previous setup, but it is orders of magnitude faster to run without a VM rollback for every single test, and it does not break any of the current tests.
* | Change default Python version in tests to 3.6.4Anish Athalye2018-03-27
| |
* | Add instructions for installing test env on macOSAnish Athalye2018-03-27
| |
* | Merge branch 'nagromc/tests-instructions'Anish Athalye2018-03-27
|\ \
| * | Add instructions for installing test env on DebianMorgan Courbet2018-03-27
| | |
* | | Update to Debian 9 (Stretch) for testingAnish Athalye2018-03-27
| |/ |/|
* | Fix bug with shell defaultsAnish Athalye2017-06-27
|/
* Make launcher find python binaryAnish Athalye2017-04-19
|
* Number repeated names for easier identificationAnish Athalye2017-04-18
|
* Merge branch 'dein0s/feature/clean_plugin_add...'Anish Athalye2017-03-26
|\
| * Add force option to clean plugindein0s2017-03-26
| |
* | Fix tests for Travis CIAnish Athalye2017-03-26
|/ | | | | This patch makes it so the `travis_cleanup` function removes broken symlinks properly.
* Add tests for more Python versionsAnish Athalye2017-03-06
|
* Allow empty link sourcesCasey Rodarmor2016-11-23
| | | | | If the source for a link is null, use the basename of the destination with a single leading '.' removed, if present.
* Make force only delete files when target existsAnish Athalye2016-11-17
|
* Fix user expansion in link sourceAnish Athalye2016-08-17
| | | | | | | | | | | | | | | | | | | | Previous to this patch, having a config like the following would not work properly: - link: ~/a: ~/b This was because the '~' was expanded on the left hand side (the link target), but not the right hand side (the link source). It was necessary to use a workaround like this: - link: ~/a: $HOME/b This was because variable expansion was being done, but user expansion was not being done. This commit adds support for using '~' in the link source.
* Fix variable expansion in extended syntaxAnish Athalye2016-08-02
|
* Fix linking when using both relink and relativeAnish Athalye2016-04-07
| | | | | | | | | | | | | | | | | | | | Prior to this patch, the following config led to incorrect behavior: - link: ~/.folder/file: path: file create: true relative: true relink: true Prior to the change, running the config the first time would result in expected behavior. However, running the config for the second time would result in deletion and re-creation of the link (even when the link is correct). This patch improves the interaction of relink and relative, taking relative paths into account when checking the validity of existing links in the `_delete()` method.
* Switch to Debian for testing in VagrantAnish Athalye2016-03-05
|
* Add default optionsAnish Athalye2016-03-03
| | | | | This feature was implemented with feedback from Aleks Kamko <aykamko@gmail.com> and Casey Rodarmor <casey@rodarmor.com>.
* Add functionality to create relative linksAnish Athalye2016-02-14
| | | | | | | This commit adds an option to the extended configuration syntax for linking files and directories. Enabling the relative option makes it so that symbolic links are created with relative paths instead of absolute paths.
* Add documentation and tests for pluginsAnish Athalye2016-02-06
|
* Travis: add guard to test_travisBenjamin Chrétien2016-01-18
|
* Move Travis CI test scriptAnish Athalye2016-01-16
|