1
0
Fork 0
mirror of https://github.com/zdharma-continuum/zinit.git synced 2025-02-25 13:29:31 +01:00
Commit graph

9 commits

Author SHA1 Message Date
vladislav doster
b7b8347cad
fix: compile command logic when using id-as ice ()
- Updated README.md `compiling` section
- Compile commands now work with `id-as` ice
- Compile command options added to tab completion  

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2024-03-03 23:43:48 -06:00
vladislav doster
22e66db478
feat: configure, make, cmake, and build ices () ()
* Refactored 'configure' and 'make' ices
* New 'build' ice sets 'configure' and 'make ices if no flags are needed.
* New 'cmake' ice will build/install using 'cmake'
* Delete command now handles programs using 'make' and 'cmake' ices
* Setting `$ZINIT[DEBUG]` enables debug logging (i.e., `+zi-log "{dbg} message ..."`)
2024-01-09 04:11:39 -06:00
vladislav doster
2e7b9aa29e
ci: optimize zunit tests ()
- cache test plugin dependencies
- add gh-r zunit tests
- fix ipinfo zunit test
- pin qsv version to 0.112.0 for macOS x86_64

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-09-14 05:13:59 -05:00
Vladislav Doster
d618467ff0 fix: failing zunit tests & bootstrap script
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2023-01-05 04:36:25 -06:00
Vladislav Doster
515688bc97 revert: "Merge branch 'refactor/zinit-function-names' into main"
This reverts commit b979847bd4, reversing
changes made to da924a21a1.

I (@vladdoster) accidentally merged this into the wrong repository. Apologies for the lack of due diligence.
2022-12-17 21:11:41 -06:00
Vladislav Doster
c28580c3fc refactor: rename zinit functions
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-09 15:40:31 -06:00
vladislav doster
8620574a55
fix: account for systems where musl is present ()
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-18 14:36:23 -05:00
vladislav doster
d60638f221
fix: gh-r logic ignores [36]86 assets ()
Changes:

- Reduce zunit verbosity with `--tap` flag
- `gh-r` tests now use `lbin` instead of `sbin`. `lbin` has smarter
  logic when looking for executables to use in creating a shim
- Add gh-r tests for `rust-analyzer`, `docker-compose`, `neovim` binary &
  appimage, and `kopia`
- Condense gh-r test logic to halve LOC (i.e., 1000+ -> ~500)
- Update gh-r logic to discard 32 bit binaries, improve 64 bit
  selection, and linux-{gnu,musl} patterns

Closes , , 

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-05 21:58:38 -05:00
vladislav doster
d59f15067e refactor: zunit tests & gh-r logic ()
- Ability to run unit tests without Docker
- Define a Z-unit \_support/bootstrap script defining the isolated test
  environment in a temp dir via `mktemp -d`, to ensure a clean test
  environment.
- GH actions workflow now tests macOS & Windows and bumps Ubuntu to the
  latest.
- GH actions workflow leverages Homebrew to simplify installing zsh &
  zunit
- Condense Z-unit GH workflow into more organized build matrix. It
  avoids creating a new environment per test file as some test files
  only have one or two tests.
- Change or remove logic in the `setup` and `teardown` functions to
  commands which apply to type of tests being run (e.g., `gh-r` setup
  sets defualt ice `gh-r` and `nocompile`).
- Expand tests for testing `gh-r` on Linux & macOS for ensuring correct
  release selection.
- Correct GH workflow `on` conditions to avoid duplicating jobs.
- Update `gh-r` ice logic to be smarter about selecting a release for
  the current system.
- Expand linting to include the tools `shfmt`, `shellcheck`, and
  `mdformat`
- Rudimentary testing for all Zinit annexes (e.g., install with no
  errors)

|   Test   | Before | Now |
| :------: | :----: | :-: |
| annexes  |   3    | 10  |
|   gh-r   |   3    | 95  |
| plugins  |   2    |  3  |
| snippets |   4    |  4  |

<img width="841" alt="Screen Shot 2022-04-23 at 21 57 08" src="https://user-images.githubusercontent.com/10052309/164954220-123a8dc5-0399-41e3-b9cf-98b2cf599145.png">

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-24 05:24:10 -05:00