-
Notifications
You must be signed in to change notification settings - Fork 3
/
test-macos-dependencies.sh
executable file
·132 lines (109 loc) · 2.47 KB
/
test-macos-dependencies.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
#!/usr/bin/env bash
#
# NormalNvim test to check if all MacOS brew dependencies still exist.
# Imports
source "$(dirname "$0")/test-utils.sh" # Functions to check packages
# CHECK DEPENDENCIES
# -----------------------------------------------------------------------------
echo "-------------------------------"
echo "NormalNvim dependencies - MacOS"
echo "-------------------------------"
# homebrew
echo "- Homebrew packages -"
dependencies=(
"luarocks"
"ranger"
"fd"
"git-delta"
"rustup"
"yarn"
)
check_homebrew_dependencies "${dependencies[@]}" || exit 1
# python
printf '\n%s\n' "- Python packages -"
dependencies=(
"pytest"
)
check_python_dependencies "${dependencies[@]}" || exit 1
# npm
printf '\n%s\n' "- NPM packages -"
dependencies=(
"jest"
)
check_npm_dependencies "${dependencies[@]}" || exit 1
# cargo
printf '\n%s\n' "- Cargo packages -"
dependencies=(
"cargo-nextest"
"grcov"
"yazi-fm"
)
check_cargo_dependencies "${dependencies[@]}" || exit 1
printf '\n\n\n\n'
echo "--------------------------"
echo "Compiler.nvim dependencies"
echo "--------------------------"
# homebrew
echo "- Homebrew packages -"
dependencies=(
"gcc" # has gfortran
"binutils" # contains ld (as we don't use mingw)
"dotnet" # runtime
"mono"
"openjdk"
"dart-sdk"
"kotlin"
"elixir"
"node"
"typescript"
"make"
"go"
"rust"
"nasm"
"r"
"ruby"
"perl"
"lua"
"swift"
"pyinstaller"
)
check_homebrew_dependencies "${dependencies[@]}" || exit 1
# homebrew cask
dependencies=(
"dotnet-sdk"
"flutter"
)
check_homebrew_cask_dependencies "${dependencies[@]}" || exit 1
# python
printf '\n%s\n' "- Python packages -"
dependencies=(
"Nuitka" # Will probably provoke a warning on MacOS, since PEP 688
)
check_python_dependencies "${dependencies[@]}" || exit 1
printf '\n\n\n\n'
echo "-----------------------"
echo "Dooku.nvim dependencies"
echo "-----------------------"
# homebrew
echo "- homebrew packages -"
dependencies=(
"doxygen"
)
check_homebrew_dependencies "${dependencies[@]}" || exit 1
# npm
printf '\n%s\n' "- NPM packages -"
dependencies=(
"jsdoc"
"typedoc"
)
check_npm_dependencies "${dependencies[@]}" || exit 1
# go
printf '\n%s\n' "- Go packages -"
dependencies=(
"godoc"
)
check_go_dependencies "${dependencies[@]}" || exit 1
printf '\n\n\n\n'
echo "-------------------------------"
echo "SUCCESS: All deps are available"
echo "-------------------------------"