Skip to content

Commit

Permalink
Add localsend, pinta, ripgrep, btop, ollama, and fastfetch
Browse files Browse the repository at this point in the history
Fiils some gaps now that I'm using Linux on my personal laptop.

Inspired by Omakub.
  • Loading branch information
gmcgibbon committed Nov 22, 2024
1 parent 7ca008d commit bdaf996
Show file tree
Hide file tree
Showing 7 changed files with 151 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/setup-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on: push
jobs:
test:
strategy:
fail-fast: false
matrix:
platform:
- name: ubuntu
Expand Down
6 changes: 6 additions & 0 deletions Bootstrapfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ gui do
install "slack"
install "gimp"
install "qemu"
install "localsend"
install "pinta"

macos do
install "iterm2"
Expand All @@ -31,6 +33,10 @@ unix do
install "antigen"
install "vundle"
install "heroku"
install "ripgrep"
install "btop"
end

install "ollama"
install "fastfetch"
install "vim"
33 changes: 32 additions & 1 deletion bootstrap/lib/bootstrap/package/sources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,4 +121,35 @@ gimp:

qemu:
ubuntu:
name: qemu-system
name: qemu-system

localsend:
windows:
name: LocalSend.LocalSend
fedora:
flatpak: true
name: org.localsend.localsend_app
ubuntu:
snap: true

fastfetch:
windows:
name: Fastfetch-cli.Fastfetch
ubuntu:
apt: ppa:zhangsongcui3371/fastfetch

btop:
ubuntu:
snap: true

ollama:
linux: &linux
script: |
if ! command -v ollama >/dev/null 2>&1; then
curl -fsSL https://ollama.com/install.sh | sh
fi
fedora:
<<: *linux
ubuntu:
<<: *linux

32 changes: 32 additions & 0 deletions test/bootstrap/fedora_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,26 @@ class FedoraTest < TestCase
assert_dnf_installed("vim")
end

test "installs fastfetch" do
assert_dnf_installed("fastfetch")
end

test "installs heroku" do
assert_installed_at("/usr/local/bin/heroku")
end

test "installs ripgrep" do
assert_dnf_install("ripgrep")
end

test "installs btop" do
assert_dnf_install("btop")
end

test "installs olama" do
assert_installed_at("/usr/local/bin/ollama")
end

if gui?
test "installs firefox" do
assert_dnf_installed("firefox")
Expand Down Expand Up @@ -76,6 +92,14 @@ class FedoraTest < TestCase
test "installs qemu" do
assert_dnf_installed("qemu")
end

test "installs localsend" do
assert_flatpak_installed("localsend")
end

test "installs pinta" do
assert_dnf_installed("pinta")
end
else
test "does not install flux" do
assert_dnf_not_installed("fluxgui")
Expand Down Expand Up @@ -116,6 +140,14 @@ class FedoraTest < TestCase
test "does not install qemu" do
assert_dnf_not_installed("qemu")
end

test "does not install localsend" do
assert_flatpak_not_installed("localsend")
end

test "does not install pinta" do
assert_dnf_not_installed("pinta")
end
end

private
Expand Down
32 changes: 32 additions & 0 deletions test/bootstrap/macos_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,26 @@ class MacosTest < TestCase
assert_brew_installed("vim")
end

test "installs fastfetch" do
assert_brew_installed("fastfetch")
end

test "installs heroku" do
assert_brew_installed("heroku")
end

test "installs ripgrep" do
assert_brew_installed("ripgrep")
end

test "installs btop" do
assert_brew_installed("btop")
end

test "installs ollama" do
assert_brew_installed("ollama")
end

if gui?
test "installs iterm2" do
assert_brew_cask_installed("iterm2")
Expand Down Expand Up @@ -84,6 +100,14 @@ class MacosTest < TestCase
test "installs qemu" do
assert_brew_installed("qemu")
end

test "installs localsend" do
assert_brew_cask_installed("localsend")
end

test "installs pinta" do
assert_brew_cask_installed("pinta")
end
else
test "does not install iterm2" do
assert_brew_cask_not_installed("iterm2")
Expand Down Expand Up @@ -128,6 +152,14 @@ class MacosTest < TestCase
test "does not install qemu" do
assert_brew_not_installed("qemu")
end

test "does not install localsend" do
assert_brew_cask_not_installed("localsend")
end

test "does not install pinta" do
assert_brew_cask_not_installed("pinta")
end
end

private
Expand Down
32 changes: 32 additions & 0 deletions test/bootstrap/ubuntu_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,26 @@ class UbuntuTest < TestCase
assert_apt_installed("vim")
end

test "installs fastfetch" do
assert_apt_installed("fastfetch")
end

test "installs heroku" do
assert_apt_installed("heroku")
end

test "installs ripgrep" do
assert_apt_installed("ripgrep")
end

test "installs btop" do
assert_snap_installed("btop")
end

test "installs ollama" do
assert_installed_at("/usr/local/bin/ollama")
end

if gui?
test "installs firefox" do
assert_apt_installed("firefox")
Expand Down Expand Up @@ -76,6 +92,14 @@ class UbuntuTest < TestCase
test "installs qemu" do
assert_apt_installed("qemu")
end

test "installs localsend" do
assert_snap_installed("localsend")
end

test "installs pinta" do
assert_apt_installed("pinta")
end
else
test "does not install flux" do
assert_apt_not_installed("fluxgui")
Expand Down Expand Up @@ -116,6 +140,14 @@ class UbuntuTest < TestCase
test "does not install qemu" do
assert_apt_not_installed("qemu")
end

test "does not install localsend" do
assert_snap_not_installed("localsend")
end

test "does not install pinta" do
assert_apt_not_installed("pinta")
end
end

private
Expand Down
16 changes: 16 additions & 0 deletions test/bootstrap/windows_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@ class WindowsTest < TestCase
assert_winget_installed("SoftwareFreedomConservancy.QEMU")
end

test "installs localsend" do
assert_winget_installed("localsend")
end

test "installs pinta" do
assert_winget_installed("pinta")
end

test "installs fastfetch" do
assert_winget_installed("fastfetch")
end

test "installs ollama" do
assert_winget_installed("ollama")
end

private

def assert_winget_installed(package_name)
Expand Down

0 comments on commit bdaf996

Please sign in to comment.