[gimp-macos-build/wip/lukaso/tests] Conditional on items that only work on main



commit 9632bd04b13a71fccf0ffc4ab4bd6fec1ed06c41
Author: Lukas Oberhuber <lukaso gmail com>
Date:   Sun Oct 17 19:10:30 2021 +0100

    Conditional on items that only work on main

 .circleci/config.yml | 50 ++++++++++++++++++++++++++++++--------------------
 1 file changed, 30 insertions(+), 20 deletions(-)
---
diff --git a/.circleci/config.yml b/.circleci/config.yml
index f45d21d..f5cd361 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -134,20 +134,25 @@ jobs:
             paths:
               - ~/gtk
             key: gimp-2.10.22-v3a
-        - run:
-            name: Importing signing certificate
-            command: |
-              mkdir ${HOME}/codesign && cd ${HOME}/codesign
-              echo "$osx_crt" | base64 -D > gnome.pfx
-              curl 'https://developer.apple.com/certificationauthority/AppleWWDRCA.cer' > apple.cer
-              security create-keychain -p "" signchain
-              security set-keychain-settings signchain
-              security unlock-keychain -u signchain
-              security list-keychains  -s "${HOME}/Library/Keychains/signchain-db" 
"${HOME}/Library/Keychains/login.keychain-db"
-              security import apple.cer -k signchain  -T /usr/bin/codesign
-              security import gnome.pfx  -k signchain -P "$osx_crt_pw" -T /usr/bin/codesign
-              security set-key-partition-list -S apple-tool:,apple: -k "" signchain
-              rm -rf ${HOME}/codesign
+        - when:
+            condition:
+                - not:
+                    - equal: [ "https://github.com/lukaso/gimp-macos-build.git";, << pipeline.project.git_url 
]
+            steps:
+                - run:
+                    name: Importing signing certificate
+                    command: |
+                      mkdir ${HOME}/codesign && cd ${HOME}/codesign
+                      echo "$osx_crt" | base64 -D > gnome.pfx
+                      curl 'https://developer.apple.com/certificationauthority/AppleWWDRCA.cer' > apple.cer
+                      security create-keychain -p "" signchain
+                      security set-keychain-settings signchain
+                      security unlock-keychain -u signchain
+                      security list-keychains  -s "${HOME}/Library/Keychains/signchain-db" 
"${HOME}/Library/Keychains/login.keychain-db"
+                      security import apple.cer -k signchain  -T /usr/bin/codesign
+                      security import gnome.pfx  -k signchain -P "$osx_crt_pw" -T /usr/bin/codesign
+                      security set-key-partition-list -S apple-tool:,apple: -k "" signchain
+                      rm -rf ${HOME}/codesign
         - run:
             name: pstree to figure out what app is running
             command: |
@@ -159,12 +164,17 @@ jobs:
               source ~/.profile
               cd ${HOME}/project/package
               jhbuild run ./build299.sh
-        - run:
-            name:  Notarizing DMG package
-            command: |
-              source ~/.profile
-              cd ${HOME}/project/package
-              jhbuild run ./notarize.sh
+        - when:
+            condition:
+                - not:
+                    - equal: [ "https://github.com/lukaso/gimp-macos-build.git";, << pipeline.project.git_url 
]
+            steps:
+                - run:
+                    name:  Notarizing DMG package
+                    command: |
+                      source ~/.profile
+                      cd ${HOME}/project/package
+                      jhbuild run ./notarize.sh
         - store_artifacts:
             path: /tmp/artifacts
             destination: builds


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]