Skip to content

Commit

Permalink
fix: test for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
entelecheia committed Dec 21, 2022
1 parent ab05669 commit db66bfd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# We need to install ca-certificates before we add the APT repos, because some of them
# may use newer CAs.

# {{ include (joinPath .chezmoi.sourceDir ".chezmoitemplates/scripts-library") }}

# The following line is for ShellCheck to correctly identify the above included library
true || source ../.chezmoitemplates/scripts-library

log_task "✅ Install dotfiles with dotdrop"
dotdrop install --profile="{{ .dotdrop.profile }}"
9 changes: 2 additions & 7 deletions scripts/test_for_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,7 @@ echo 'Defaults env_keep += "DOTFILES_TEST"' | sudo tee /etc/sudoers.d/env_keep
~/.dotfiles/scripts/install_chezmoi.sh
set +xeu
if [[ -r "~/.profile" ]]; then
source "~/.profile"
fi
source ~/.profile
set -xeu
chezmoi data
Expand All @@ -165,10 +163,7 @@ run_test_darwin() {
./scripts/install_chezmoi.sh

set +xeu
if [[ -r "${HOME}/.profile" ]]; then
# shellcheck source=/dev/null
source "${HOME}/.profile"
fi
source ~/.profile
set -xeu

chezmoi data
Expand Down

0 comments on commit db66bfd

Please sign in to comment.