-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1373 from twpayne/tidy-docs
Miscellaneous fixes
- Loading branch information
Showing
37 changed files
with
710 additions
and
212 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,7 +165,7 @@ jobs: | |
- name: ShellCheck | ||
uses: ludeeus/[email protected] | ||
with: | ||
scandir: ./assets/scripts | ||
ignore: completions | ||
- name: Whitespace | ||
run: go run ./internal/cmds/lint-whitespace | ||
- name: Typos | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
*.exe | ||
/.vagrant | ||
/bin/chezmoi | ||
/bin/gofumports | ||
/bin/golangci-lint | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Vagrant.configure("2") do |config| | ||
config.vm.box = "generic/fedora33" | ||
config.vm.hostname = "fedora33" | ||
config.vm.synced_folder ".", "/chezmoi", type: "rsync" | ||
config.vm.provision "shell", inline: <<-SHELL | ||
yum install --quiet --assumeyes git gnupg golang | ||
SHELL | ||
config.vm.provision "file", source: "assets/vagrant/fedora33.test-chezmoi.sh", destination: "test-chezmoi.sh" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
go get golang.org/dl/go1.17 | ||
"$HOME"/go/bin/go1.17 download | ||
( cd /chezmoi && "$HOME"/go/bin/go1.17 test ./... ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Vagrant.configure("2") do |config| | ||
config.vm.box = "generic/freebsd13" | ||
config.vm.hostname = "freebsd13" | ||
config.vm.synced_folder ".", "/chezmoi", type: "rsync" | ||
config.vm.provision "shell", inline: <<-SHELL | ||
pkg install --quiet --yes git gnupg go | ||
SHELL | ||
config.vm.provision "file", source: "assets/vagrant/freebsd13.test-chezmoi.sh", destination: "test-chezmoi.sh" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
( cd /chezmoi && go test ./... ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Vagrant.configure("2") do |config| | ||
config.vm.box = "generic/openbsd6" | ||
config.vm.hostname = "openbsd6" | ||
config.vm.synced_folder ".", "/chezmoi", type: "rsync" | ||
config.vm.provision "shell", inline: <<-SHELL | ||
pkg_add -x git gnupg go | ||
SHELL | ||
config.vm.provision "file", source: "assets/vagrant/openbsd6.test-chezmoi.sh", destination: "test-chezmoi.sh" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
( cd /chezmoi && go test ./... ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/sh | ||
|
||
for os in "$@"; do | ||
if [ -f "${os}.Vagrantfile" ]; then | ||
export VAGRANT_VAGRANTFILE=assets/vagrant/${os}.Vagrantfile | ||
( | ||
cd ../.. && | ||
vagrant up && | ||
vagrant ssh -c "sh test-chezmoi.sh" && | ||
vagrant destroy -f | ||
) | ||
else | ||
echo "${os}.Vagrantfile not found" | ||
fi | ||
done |
Oops, something went wrong.