]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-pr-api: Don't run for docs-only PRs 1737/head
authorDavid Galloway <dgallowa@redhat.com>
Wed, 3 Feb 2021 18:12:26 +0000 (13:12 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Wed, 3 Feb 2021 18:13:07 +0000 (13:13 -0500)
Signed-off-by: David Galloway <dgallowa@redhat.com>
ceph-pr-api/build/api [new file with mode: 0644]
ceph-pr-api/build/build
ceph-pr-api/config/definitions/ceph-pr-api.yml

diff --git a/ceph-pr-api/build/api b/ceph-pr-api/build/api
new file mode 100644 (file)
index 0000000..a2af5a6
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/bash -e
+cd src/pybind/mgr/dashboard
+timeout 7200 ./run-backend-api-tests.sh
index 2339ce12c03383464b6825a2f5bdcb52e94da20e..5ad02176cc13b44ec8a0e4e107327b21d1ef819c 100644 (file)
@@ -1,4 +1,11 @@
 #!/bin/bash -e
+
+docs_pr_only
+if [ "$DOCS_ONLY" = true ]; then
+    echo "Only the doc/ dir changed.  No need to run make check or API tests."
+    exit 0
+fi
+
 n_build_jobs=$(get_nr_build_jobs)
 n_test_jobs=$(($(nproc) / 4))
 export CHECK_MAKEOPTS="-j${n_test_jobs} -N -Q"
index dd4da1f8aaccdb7c2ae40c125b504936725761ec..30eb3dddfc759ea801c18e81200ae6165e6e69ac 100644 (file)
@@ -68,7 +68,7 @@
             - ../../../scripts/build_utils.sh
             - ../../build/build
             - ../../../scripts/dashboard/install-backend-api-test-deps.sh
-      - shell: "cd src/pybind/mgr/dashboard; timeout 7200 ./run-backend-api-tests.sh"
+            - ../../build/api
 
     # This job seems to get aborted more often than others.  Multiple times in the past week,
     # it's gotten aborted during an apt transaction which leaves a dirty dpkg DB.
@@ -84,3 +84,8 @@
 
     wrappers:
       - ansicolor
+      - credentials-binding:
+          - username-password-separated:
+              credential-id: github-readonly-token
+              username: GITHUB_USER
+              password: GITHUB_PASS