-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtest-termux-dependencies.sh
executable file
·137 lines (118 loc) · 2.69 KB
/
test-termux-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
133
134
135
136
137
#!/usr/bin/env bash
#
# NormalNvim test to check if all Termux dependencies still exist.
# Imports
source "$(dirname "$0")/test-utils.sh" # Functions to check packages
# CHECK DEPENDENCIES
# -----------------------------------------------------------------------------
echo "--------------------------------"
echo "NormalNvim dependencies - Termux"
echo "--------------------------------"
# termux
echo "- Termux packages -"
dependencies=(
"tur-repo" # This enable the termux user repository
"luarocks"
"python"
"fd"
"git-delta"
"yazi"
"yarn"
)
check_termux_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"
"git-delta"
"grcov"
)
check_cargo_dependencies "${dependencies[@]}" || exit 1
printf '\n\n\n\n'
echo "--------------------------"
echo "Compiler.nvim dependencies"
echo "--------------------------"
# termux
echo "- Termux packages -"
dependencies=(
"mono"
"openjdk-17"
"dart"
"kotlin"
"elixir"
"nodejs"
"make"
"rust"
"golang"
"nasm"
"python"
"ruby"
"perl"
"liblua52"
"swift"
"binutils-libs" # contains ld (as we don't use mingw)
)
check_termux_dependencies "${dependencies[@]}" || exit 1
echo "- Termux packages (TUR) -"
dependencies=(
"gcc-default" # Has gfortran
)
check_tur_dependencies "${dependencies[@]}" || exit 1
# python
printf '\n%s\n' "- Python packages -"
dependencies=(
"Nuitka"
)
check_python_dependencies "${dependencies[@]}" || exit 1
printf '\n%s\n' "- Python packages -"
dependencies=(
"pyinstaller"
)
check_python_dependencies "${dependencies[@]}" || exit 1
echo "-----------------------"
echo "Dooku.nvim dependencies"
echo "-----------------------"
# termux
echo "- Termux packages -"
dependencies=(
"doxygen"
)
check_termux_dependencies "${dependencies[@]}" || exit 1
# npm
printf '\n%s\n' "- NPM packages -"
dependencies=(
"jsdoc"
"typedoc"
"typescript"
)
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'
# info
echo "-----------------------"
echo "Unsuported dependencies"
echo "-----------------------"
echo " * flutter"
echo " * r language"
echo " * dotnet"
printf '\n\n\n\n'
echo "-------------------------------"
echo "SUCCESS: All deps are available"
echo "-------------------------------"