aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAstound <kirito@disroot.org>2024-08-01 10:49:34 +0800
committerAstound <kirito@disroot.org>2024-08-01 10:49:34 +0800
commitc19d3a94142527e8ed22d48f4f1ee7a00e493a72 (patch)
treedde0b872ed5ba73df59e0cb7bcfe0b2dacd53cda
parent0dda73f9f9c7f35a4d3209958bc15cd32ca073b8 (diff)
downloadhyperterm-c19d3a94142527e8ed22d48f4f1ee7a00e493a72.tar.lz
hyperterm-c19d3a94142527e8ed22d48f4f1ee7a00e493a72.tar.xz
hyperterm-c19d3a94142527e8ed22d48f4f1ee7a00e493a72.zip
Add workflow and fix issues
-rw-r--r--.bash_profile2
-rw-r--r--.gitea/workflows/ci.yaml92
-rw-r--r--hyperterm/hyperterm.sh2
-rw-r--r--hyperterm/hyperterm.sha5126
-rw-r--r--hyperterm/tools/virtualenv.sh2
5 files changed, 98 insertions, 6 deletions
diff --git a/.bash_profile b/.bash_profile
index abb00a8..9c1cf3b 100644
--- a/.bash_profile
+++ b/.bash_profile
@@ -1,7 +1,7 @@
#!/bin/bash
#
# "$HOME/.bash_profile"
-# shellcheck disable=SC1090
+# shellcheck disable=SC1090,SC1091
if [ -f "$HOME/.bashrc" ]
then
source "$HOME/.bashrc"
diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml
new file mode 100644
index 0000000..4c181ca
--- /dev/null
+++ b/.gitea/workflows/ci.yaml
@@ -0,0 +1,92 @@
+name: CI Pipeline
+
+on: [push, pull_request]
+
+jobs:
+ shasums:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Run shasums script
+ run: |
+ cp -rv ./hyperterm/ "$HOME/.hyperterm/"
+ cp -v .bash* "$HOME"
+ cp -v ./hyperterm/_custom.sh "$HOME"
+ rm -rfv hyperterm/
+ (cd "$HOME/.hyperterm/" && sha512sum -c hyperterm.sha512)
+ (cd "$HOME" && bash -x .bashrc)
+
+ build:
+ runs-on: ubuntu-latest
+ needs: shasums
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up locales
+ run: |
+ sudo apt-get update -y
+ sudo apt-get install -y locales less
+ sudo sed -i 's/# \(es_ES.UTF-8 UTF-8\)/\1/' /etc/locale.gen
+ sudo sed -i 's/# \(en_US.UTF-8 UTF-8\)/\1/' /etc/locale.gen
+ sudo locale-gen es_ES.UTF-8
+ export LANG=es_ES.UTF-8 LANGUAGE=es_ES
+
+ - name: Install dependencies for shellcheck
+ run: sudo apt-get install -y xz-utils shellcheck
+
+ - name: Run shellcheck on bash profile
+ run: |
+ shellcheck .bash_profile
+ shellcheck ./hyperterm/hyperterm.sh
+ shellcheck ./hyperterm/_custom.sh
+
+ - name: Run shellcheck on build script
+ run: shellcheck build.sh
+
+ - name: Run build script
+ run: bash -x build.sh
+
+ - name: Run shellcheck on core scripts
+ run: |
+ shellcheck hyperterm/core/autocomplete.sh
+ shellcheck hyperterm/core/colors.sh
+ shellcheck hyperterm/core/git.sh
+ shellcheck hyperterm/core/languages.sh
+ shellcheck hyperterm/core/status.sh
+ shellcheck hyperterm/core/update.sh
+
+ - name: Run shellcheck on theme scripts
+ run: |
+ shellcheck hyperterm/themes/default.sh
+ shellcheck hyperterm/themes/joy.sh
+ shellcheck hyperterm/themes/light_theme.sh
+ shellcheck hyperterm/themes/minterm.sh
+ shellcheck hyperterm/themes/pure.sh
+ shellcheck hyperterm/themes/simple.sh
+ shellcheck hyperterm/themes/special.sh
+
+ - name: Run shellcheck on tools scripts
+ run: |
+ shellcheck hyperterm/tools/aliases.sh
+ shellcheck hyperterm/tools/compress.sh
+ shellcheck hyperterm/tools/export.sh
+ shellcheck hyperterm/tools/listuser.sh
+ shellcheck hyperterm/tools/network.sh
+ shellcheck hyperterm/tools/proxy.sh
+ shellcheck hyperterm/tools/rar2zip.sh
+ shellcheck hyperterm/tools/ruby.sh
+ shellcheck hyperterm/tools/ssh-agent.sh
+ shellcheck hyperterm/tools/sysinfo.sh
+ shellcheck hyperterm/tools/virtualenv.sh
+
+ - name: Run shellcheck on install script
+ run: shellcheck install.sh
+
+ - name: Run install script
+ run: bash -x install.sh -s
+
+ - name: Run shellcheck on uninstall script
+ run: shellcheck uninstall.sh
+
+ - name: Run uninstall script
+ run: bash -x uninstall.sh -s
diff --git a/hyperterm/hyperterm.sh b/hyperterm/hyperterm.sh
index e549048..38b1cb6 100644
--- a/hyperterm/hyperterm.sh
+++ b/hyperterm/hyperterm.sh
@@ -7,7 +7,7 @@
# License: GNU GPLv3 or later
# See archive AUTHORS
#
-# shellcheck disable=SC1090
+# shellcheck disable=SC1090,SC1091
xhost +local:root > /dev/null 2>&1
diff --git a/hyperterm/hyperterm.sha512 b/hyperterm/hyperterm.sha512
index 688fec7..1066e33 100644
--- a/hyperterm/hyperterm.sha512
+++ b/hyperterm/hyperterm.sha512
@@ -1,5 +1,5 @@
-d02b066e31cd063596fa18e47fd1d5c1f1a19b96c08285b96c1991eb95ff52e9e5096e529540222b3be30ff94726170ecf05cd9c554da137ed2baf7d248773c5 ../.bash_profile
-ab3089453e35cc38544dffe672d532cbd559634937893a053937b599175688aecc5f3caad3064e818b883b027f27713194e3909dc3ab0246922cea00557c595a ./hyperterm.sh
+cdfe049ec07f02a1893cda29c13085d06709e09a30b0c2e1111585278315f03139d61080c883cb3fd87f2bf64e05d9b5e5eaaad84c97ced890d83c73eb399fcb ../.bash_profile
+04ab2fefad0680b22001f241e2ce772d07eadef206bd09208627d9dc1b4366d190374d439930215db5f5a742f9fe0bba8fcbaf34164a9332ad7e132c70ba9f92 ./hyperterm.sh
e30b95c0ca1d067106e6b33de5252556191c5c882a3fe3c989598d3a01ed120397b465980905afb976407a3ef2ba0625ad00beb9482ac40cdbac5e6e887c8f0d ./core/update.sh
1cfba599047d84a17ff92b695ebf527a505a30acc9ec21a2b9f410a7ea6dde4b23b5cf62e557d82f2fe9a8980649942424b879ca53baae4d4cb3057681baa7b6 ./core/colors.sh
2036a79215a5434e31f3406bea3f2ffa7e94ffef86c2d1ceb8865db29f19fe7f342f9cab93288f57c75daed36ef146f85d15f8d633931a27d55c3983f55ef15b ./core/git.sh
@@ -23,5 +23,5 @@ f760432c3d76befad30588299eb2d1412d77b22fd850ffbd840c72123885d4e916a7e0b16e7048c5
88b215a6c2df22bc84bda981b3ff1d27ba391f03e2b84b95adefe1e8885b079b0da7c885ec0ad3256b60b8da9efa9ba8ab28906ece76781b192ea474d579d143 ./tools/rar2zip.sh
fab9d339a99c7d2e1809d1c44f533523c6bfcdcc8d63c62b335ce7d4c666c8bdd7ac319316bf71f043163a3a0184e25ecfe1ee32724627424d042a05fa80ce77 ./tools/vconverter.sh
ee1d6d1f9b010318985f7154c2a9173c8f2ab6b637cd3c8d2a9b403e83470e15a273dcff326a84f035660807d7cfcf04efe5abc0495e25ae7339b8807899cf0d ./tools/listuser.sh
-6f08ba1ca2f88ae12ab37bb809ce2408b39cc69c05bffb2015661b39761aaf3f50eef52f0f0779a7143c0990fd0a35696203dd7f023c2119597d57f23612f587 ./tools/virtualenv.sh
+243e3a076f1696bde1e464b479e221876177eb98c92415a09de8dc9e8d138e88e006eb9fa441ca1ab19d260cb3fd4de82dc54feae73453e229c3a8fdab3043f0 ./tools/virtualenv.sh
81572df762582dc63ca7ce89a0aeed645931011b0d66909d9ac6c5d34d6e16ddab6a1edd385ac9328b11bb154fb6ecbe93f15c0396a0f33f6dcf4557cb430a02 ./tools/ssh-agent.sh
diff --git a/hyperterm/tools/virtualenv.sh b/hyperterm/tools/virtualenv.sh
index c0bb5db..17fd119 100644
--- a/hyperterm/tools/virtualenv.sh
+++ b/hyperterm/tools/virtualenv.sh
@@ -1,5 +1,5 @@
#!/bin/bash
-# shellcheck disable=SC1090
+# shellcheck disable=SC1090,SC1091
# Python virtualenv
function activate() {
source "$1/bin/activate"