Commit graph

50 commits

Author SHA1 Message Date
vladislav doster 8170753a5d
fix: container zshelldoc install (#591) 2023-11-20 05:41:40 -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 2b460a74f2 fix: vim modelines & zsdoc pdf rendering
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-12-15 22:22:48 -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 49926e075a
maint: consistent vim mode lines across all files (#393) 2022-10-05 09:59:15 -05:00
vladislav doster 308c9d4cd8
fix: remove curl option "--tcp-fastopen" which is not always available (#299)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-06-03 20:20:36 -05:00
vladislav doster 8620574a55
fix: account for systems where musl is present (#269)
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-05-18 14:36:23 -05:00
vladislav doster 5b734115dc
maint: update Makefile targets (#224)
- add `zwc` target to compile zinit source to `.zwc`
- add zsh path variable
- add 'test' target to easily run zunit tests
- clean target cleans `.zwc` and more explicit for `.adoc`
- remove `scripts/zcompile` script

Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-28 03:59:47 -05:00
vladislav doster d59f15067e refactor: zunit tests & gh-r logic (#201)
- 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
Vladislav Doster 96fe03f85b feat: expand linted file types to markdown and shell
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
2022-04-17 17:26:08 -05:00
Philipp Schmitt e47a11dbb2
Fix workdir 2022-03-18 23:24:43 +01:00
Philipp Schmitt 8e81b90335
Use container for generating docs 2022-03-17 22:55:04 +01:00
KOBAYASHI Ryota 4b2f053d14 fix install script 2021-11-30 18:15:06 +09:00
Philipp Schmitt b0adaf69f5
Add a few options 2021-11-28 22:59:31 +01:00
Philipp Schmitt 33c029db2b
DRY 2021-11-27 23:01:25 +01:00
Philipp Schmitt 4f34b08d90
Add --devel flag to mount repo as /src 2021-11-26 21:07:53 +01:00
Daehyeok Mun a4eda707f4 Fix warning messages
Signed-off-by: Daehyeok Mun <daehyeok@gmail.com>
2021-11-24 23:39:17 -08:00
Philipp Schmitt 6fb7d38fc2
Add --env alias for --environment 2021-11-23 15:40:41 +01:00
Philipp Schmitt 6c5df71e96
Fetch the annexes during the install (#104) 2021-11-23 11:18:11 +01:00
Philipp Schmitt 9a9be0c293
🐳 Add annexes to container (#103) 2021-11-23 11:17:39 +01:00
Philipp Schmitt cbb867335d
Add -f|--file flag to provide the init config via a file rather than its content (-c) 2021-11-22 20:44:34 +01:00
Philipp Schmitt 7cd8768de4
Update default branch from master to main (#100) 2021-11-22 08:40:16 +01:00
Philipp Schmitt 351bdeb10a
Do not prompt for the annexes if updating 2021-11-21 12:03:04 +01:00
Philipp Schmitt 85bf36c6b0
Fix warning messages 2021-11-21 11:55:31 +01:00
Philipp Schmitt 564801c2e5
Fix typo: warning -> warn 2021-11-21 11:53:50 +01:00
Philipp Schmitt e866a7a1e8
Make sure TERM is set in the container. Fixes #97 (#99) 2021-11-21 11:26:51 +01:00
Philipp Schmitt c53a3f6cc7
Fix ices tests 2021-11-21 08:10:35 +01:00
Philipp Schmitt 43a81e12c8
Don't override other env vars when run with --zunit 2021-11-21 08:02:38 +01:00
Philipp Schmitt 6e590e8540
Add -e|--environment flag (and silence zunit runs) 2021-11-21 08:01:23 +01:00
Philipp Schmitt f2daa6e665
Add --zsh-debug|-x flag to wrap commands in zsh -x 2021-11-20 22:53:28 +01:00
Philipp Schmitt 9d9e410536
Testing with zunit! 2021-11-20 21:16:34 +01:00
Philipp Schmitt fc0e559d93
Update container image 2021-11-20 10:59:52 +01:00
Philipp Schmitt 11713a0a35
Fix docker build script and move it to scripts/ 2021-11-19 18:55:55 +01:00
Philipp Schmitt 35512afa32
🧹 Move scripts to scripts/ dir 2021-11-18 22:48:11 +01:00
Philipp Schmitt ffdf5a7e66
Merge branch 'master' into ci-docker 2021-11-18 08:03:30 +01:00
Philipp Schmitt 3020177e1c
✂️ Relocate module 2021-11-17 22:10:13 +01:00
Philipp Schmitt 2583464bd5
🤖 Automated container builds 2021-11-17 19:58:12 +01:00
Philipp Schmitt 74ee9397e9
Update git-process-output.zsh url 2021-11-16 11:09:59 +01:00
Philipp Schmitt 587b5407f3
Fix shellcheck issues 2021-11-16 07:19:48 +01:00
Philipp Schmitt 6436189cda
Update zsh version check 2021-11-15 22:52:05 +01:00
Philipp Schmitt b9674e2995
Add warning about zsh version if < 5.5 2021-11-15 22:24:32 +01:00
Philipp Schmitt 0c425c656d
🔪 Shorten the tutorial section 2021-11-15 21:53:08 +01:00
Philipp Schmitt 4c2b461344
Update tutorial section 2021-11-15 21:32:59 +01:00
Aaron Lichtman 5253de6179
Update scripts/install.sh 2021-11-15 14:29:55 -06:00
Philipp Schmitt dd704137e5
We need more emojis. 2021-11-15 21:13:58 +01:00
Philipp Schmitt c27252c983
Remove the last remaining inline color escape sequences 2021-11-15 21:09:51 +01:00
Philipp Schmitt 0742fe925a
Only chmod +x the git output script if it was downloaded 2021-11-15 20:12:52 +01:00
Philipp Schmitt 32d67c4f3d
Move mod-install.sh to scripts/ 2021-11-15 20:09:24 +01:00
Philipp Schmitt e7a007aa74
Add NO_EDIT and NO_TUTORIAL to skip resp. the zshrc edits or the tutorial 2021-11-15 20:02:30 +01:00
Philipp Schmitt c4d3049591
Fix #60: Move the installer to scripts/ 2021-11-15 19:56:52 +01:00