]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Banish luacheck from functional tests 4648/head
authorAndrew Lewis <nerf@judo.za.org>
Mon, 16 Oct 2023 17:50:56 +0000 (19:50 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Tue, 17 Oct 2023 12:25:45 +0000 (14:25 +0200)
 - Use luacheck from GitLab

.drone.jsonnet
.drone.yml
test/functional/cases/200_luacheck.robot [deleted file]

index 694a63ef2fe785cd02bb6379d2607b8eca608eb4..ef0f56c61f3f8eb1b3689a344f4ff13450706512 100644 (file)
@@ -287,6 +287,14 @@ local noarch_pipeline = {
         './node_modules/.bin/stylelint ./**/*.css ./**/*.html ./**/*.js',
       ],
     },
+    {
+      name: 'luacheck',
+      image: 'pipelinecomponents/luacheck',
+      pull: 'if-not-exists',
+      commands: [
+        'luacheck -q --no-color .',
+      ],
+    },
   ],
 } + default_trigger + docker_pipeline;
 
index 74231368a26a8d339b1d5da78d993a459df1e575..196dbf9ad2375a1fbdee8ad0bb602e3663a22137 100644 (file)
          "image": "node:18-alpine",
          "name": "eslint",
          "pull": "if-not-exists"
+      },
+      {
+         "commands": [
+            "luacheck -q --no-color ."
+         ],
+         "image": "pipelinecomponents/luacheck",
+         "name": "luacheck",
+         "pull": "if-not-exists"
       }
    ],
    "trigger": {
 }
 ---
 {
-   "hmac": "3f01ceb14c7dd3ba2f5343fc52216843f72212e1cb25f944c2366d57e78d2b79",
+   "hmac": "6c89d1423ccbddbfac9e2b67f24192018670209a293cfee308880a16a2f2b372",
    "kind": "signature"
 }
 ...
diff --git a/test/functional/cases/200_luacheck.robot b/test/functional/cases/200_luacheck.robot
deleted file mode 100644 (file)
index a38fe08..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-*** Settings ***
-Library         Process
-
-*** Test Cases ***
-Lua Check
-  ${result} =  Run Process  luacheck  -q  --no-color  .  cwd=${TOPDIR}
-  IF  ${result.rc} != 0
-    Log  ${result.stdout}
-  END
-  Should Be Equal As Integers  ${result.rc}  0  msg=${result.stdout}  values=false