Test the package installation in the functional test in Woodpecker-CI
authorAlexander Popov <alex.popov@linux.com>
Mon, 8 May 2023 12:27:18 +0000 (15:27 +0300)
committerAlexander Popov <alex.popov@linux.com>
Mon, 8 May 2023 16:45:43 +0000 (19:45 +0300)
.woodpecker/functional_test.yml

index a9ae02a61d504eaa569b0030d13320edafe82306..4282e25efa62866c2839bb5edba3d6ff8682c1cf 100644 (file)
@@ -1,16 +1,16 @@
 # .woodpecker.yml
 pipeline:
-  hello-step:
+  installation-test:
     image: python:3
+    pull: true
     commands:
-      - echo "Hello, this is the functional test"
-  build:
-    image: python:3
-    commands:
-      - echo "Building..."
+      - echo "Prepare for the installation..."
+      - cd ..
+      - pwd
+      - ls -la
       - python --version
-  a-test-step:
-    image: python:3
-    commands:
-      - echo "Testing..."
-      - ./bin/kconfig-hardened-check
+      - echo "Install package via pip..."
+      - pip --verbose install --no-cache-dir git+https://github.com/a13xp0p0v/kconfig-hardened-check
+      - echo "Run the installed tool..."
+      - which kconfig-hardened-check
+      - kconfig-hardened-check