ci: sr.ht: fix gitter notify
authorMichael Wallner <mike@php.net>
Mon, 21 Dec 2020 22:14:13 +0000 (23:14 +0100)
committerMichael Wallner <mike@php.net>
Mon, 21 Dec 2020 22:14:13 +0000 (23:14 +0100)
.builds/alpine.yml
.builds/freebsd.yml
.builds/openbsd.yml
.builds/scripts/maybe
.builds/scripts/notify-gitter

index c8cda83f05fce186c6825f9dc32fcf83202ed1e8..0ee825b1c5624d873b06e9514dd2d054eb280391 100644 (file)
@@ -12,7 +12,7 @@ sources:
   - https://github.com/m6w6/libmemcached
 secrets:
   - 685c5b0a-395c-4031-97f8-97496bb6c25f
-  - 79d59693-c250-4eba-9569-24650f86256b
+  - d7dfe587-b433-481b-8725-d7ccd82e59fb
 environment:
   ENABLE_HASH_HSIEH:  "ON"
   ENABLE_MEMASLAP:    "ON"
@@ -29,4 +29,4 @@ tasks:
   - install: |
       maybe cmake --install debug --prefix /tmp
   - success: |
-      maybe
+      notify-gitter success
index 646a04e43ddefa00140945db458ec6c17038dda8..e9add60b48a429e56f457df1e4a014bbc31864fb 100644 (file)
@@ -16,7 +16,7 @@ sources:
   - https://github.com/m6w6/libmemcached
 secrets:
   - 685c5b0a-395c-4031-97f8-97496bb6c25f
-  - 79d59693-c250-4eba-9569-24650f86256b
+  - d7dfe587-b433-481b-8725-d7ccd82e59fb
 environment:
   ENABLE_HASH_HSIEH:  "ON"
   ENABLE_MEMASLAP:    "ON"
@@ -52,4 +52,4 @@ tasks:
       maybe cmake --build release -j2 --target package -- VERBOSE=
       maybe cmake --build release -j2 --target push-artifacts -- VERBOSE=
   - success: |
-      maybe
+      notify-gitter success
index 859eda82de985df48b6a3341febafa951ec5aebe..e437f62586c2f2049125d9266bdcc52512d6a0ee 100644 (file)
@@ -16,7 +16,7 @@ sources:
   - https://github.com/m6w6/libmemcached
 secrets:
   - 685c5b0a-395c-4031-97f8-97496bb6c25f
-  - 79d59693-c250-4eba-9569-24650f86256b
+  - d7dfe587-b433-481b-8725-d7ccd82e59fb
 environment:
   ENABLE_HASH_HSIEH:  "ON"
   ENABLE_MEMASLAP:    "OFF"
@@ -40,4 +40,4 @@ tasks:
       maybe cmake --build release -j2 --target package -- VERBOSE=
       maybe cmake --build release -j2 --target push-artifacts -- VERBOSE=
   - success:
-      maybe
+      notify-gitter success
index 0a5b66162d6ef446e3ea3d2e1c626641ec53096c..8ac824db76af4aab3cbd15e5edb65113665b415d 100755 (executable)
@@ -1,9 +1,4 @@
 #!/usr/bin/env bash
-if test $# -eq 0
-then
-       notify-gitter success
-fi
-
 "$@"
 ERROR=$?
 
index c5f1f2bd8c7fb5005bb438201600d80a2b6f36a9..7be63d08f30b22f3aeebe4296105ef0b76189188 100755 (executable)
@@ -9,7 +9,7 @@ REF=$(GIT_DIR=libmemcached/.git git describe --abbrev --always)
 REF_URL=https://github.com/${REPO}/commits/${REF}
 
 BUILD_URL=${JOB_URL}
-BUILD_TAG=$(uname -o)
+BUILD_TAG=$(uname -o 2>/dev/null || uname -s)
 if test "$BUILD_TAG" = "GNU/Linux"
 then
        BUILD_TAG=$(lsb_release -irs)