mirror of
https://gitlab.com/smart-pattern/valentina.git
synced 2024-09-19 15:24:03 +02:00
Compare commits
2 commits
b462286a23
...
1227e6c4e3
Author | SHA1 | Date | |
---|---|---|---|
1227e6c4e3 | |||
e4e412947f |
11
.cirrus.yml
11
.cirrus.yml
|
@ -200,11 +200,11 @@ macos_task_template: &MACOS_TASK_TEMPLATE
|
||||||
# with a UI dialog asking for the certificate password, which we can't
|
# with a UI dialog asking for the certificate password, which we can't
|
||||||
# use in a headless CI environment
|
# use in a headless CI environment
|
||||||
# Create the keychain with a password ($MACOS_CI_KEYCHAIN_PWD)
|
# Create the keychain with a password ($MACOS_CI_KEYCHAIN_PWD)
|
||||||
- security create-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain
|
- security create-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
# Make the custom keychain default, so xcodebuild will use it for signing
|
# Make the custom keychain default, so xcodebuild will use it for signing
|
||||||
- security default-keychain -s build.keychain
|
- security default-keychain -s $HOME/Library/Keychains/build.keychain
|
||||||
# Unlock the keychain
|
# Unlock the keychain
|
||||||
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain
|
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
# Check if System.keychain is not cluttered
|
# Check if System.keychain is not cluttered
|
||||||
# good: 60K
|
# good: 60K
|
||||||
# bad: 25MB
|
# bad: 25MB
|
||||||
|
@ -217,13 +217,13 @@ macos_task_template: &MACOS_TASK_TEMPLATE
|
||||||
- curl https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer --output $HOME/DeveloperIDG2CA.cer --silent
|
- curl https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer --output $HOME/DeveloperIDG2CA.cer --silent
|
||||||
- sudo security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign
|
- sudo security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign
|
||||||
# 3) Developer ID
|
# 3) Developer ID
|
||||||
- security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign
|
- security import certificate.p12 -k $HOME/Library/Keychains/build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign
|
||||||
# Delete the files, we no longer need them
|
# Delete the files, we no longer need them
|
||||||
- rm $HOME/AppleWWDRCAG3.cer
|
- rm $HOME/AppleWWDRCAG3.cer
|
||||||
- rm $HOME/DeveloperIDG2CA.cer
|
- rm $HOME/DeveloperIDG2CA.cer
|
||||||
- rm certificate.p12
|
- rm certificate.p12
|
||||||
# Set the partition list (sort of like an access control list)
|
# Set the partition list (sort of like an access control list)
|
||||||
- security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "$MACOS_CI_KEYCHAIN_PWD" build.keychain
|
- security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
# Echo the identity, just so that we know it worked.
|
# Echo the identity, just so that we know it worked.
|
||||||
# This won't display anything secret.
|
# This won't display anything secret.
|
||||||
- security find-identity -v -p codesigning
|
- security find-identity -v -p codesigning
|
||||||
|
@ -256,6 +256,7 @@ macos_task_template: &MACOS_TASK_TEMPLATE
|
||||||
- sudo ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python
|
- sudo ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python
|
||||||
- whereis python
|
- whereis python
|
||||||
- pwd
|
- pwd
|
||||||
|
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
- conan profile new valentina
|
- conan profile new valentina
|
||||||
- conan profile update settings.build_type=Release valentina
|
- conan profile update settings.build_type=Release valentina
|
||||||
- conan profile update settings.os=Macos valentina
|
- conan profile update settings.os=Macos valentina
|
||||||
|
|
24
appveyor.yml
24
appveyor.yml
|
@ -623,11 +623,11 @@ for:
|
||||||
# with a UI dialog asking for the certificate password, which we can't
|
# with a UI dialog asking for the certificate password, which we can't
|
||||||
# use in a headless CI environment
|
# use in a headless CI environment
|
||||||
# Create the keychain with a password ($MACOS_CI_KEYCHAIN_PWD)
|
# Create the keychain with a password ($MACOS_CI_KEYCHAIN_PWD)
|
||||||
- security create-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain
|
- security create-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
# Make the custom keychain default, so xcodebuild will use it for signing
|
# Make the custom keychain default, so xcodebuild will use it for signing
|
||||||
- security default-keychain -s build.keychain
|
- security default-keychain -s $HOME/Library/Keychains/build.keychain
|
||||||
# Unlock the keychain
|
# Unlock the keychain
|
||||||
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain
|
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
# Check if System.keychain is not cluttered
|
# Check if System.keychain is not cluttered
|
||||||
# good: 60K
|
# good: 60K
|
||||||
# bad: 25MB
|
# bad: 25MB
|
||||||
|
@ -640,13 +640,13 @@ for:
|
||||||
- curl https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer --output $HOME/DeveloperIDG2CA.cer --silent
|
- curl https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer --output $HOME/DeveloperIDG2CA.cer --silent
|
||||||
- sudo security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign
|
- sudo security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign
|
||||||
# 3) Developer ID
|
# 3) Developer ID
|
||||||
- security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign
|
- security import certificate.p12 -k $HOME/Library/Keychains/build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign
|
||||||
# Delete the files, we no longer need them
|
# Delete the files, we no longer need them
|
||||||
- rm $HOME/AppleWWDRCAG3.cer
|
- rm $HOME/AppleWWDRCAG3.cer
|
||||||
- rm $HOME/DeveloperIDG2CA.cer
|
- rm $HOME/DeveloperIDG2CA.cer
|
||||||
- rm certificate.p12
|
- rm certificate.p12
|
||||||
# Set the partition list (sort of like an access control list)
|
# Set the partition list (sort of like an access control list)
|
||||||
- security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "$MACOS_CI_KEYCHAIN_PWD" build.keychain
|
- security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
# Echo the identity, just so that we know it worked.
|
# Echo the identity, just so that we know it worked.
|
||||||
# This won't display anything secret.
|
# This won't display anything secret.
|
||||||
- security find-identity -v -p codesigning
|
- security find-identity -v -p codesigning
|
||||||
|
@ -659,6 +659,7 @@ for:
|
||||||
- python3 --version
|
- python3 --version
|
||||||
- whereis python3
|
- whereis python3
|
||||||
- sudo ln -s -f /usr/bin/python3 /usr/local/bin/python
|
- sudo ln -s -f /usr/bin/python3 /usr/local/bin/python
|
||||||
|
- sudo ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python
|
||||||
- whereis python
|
- whereis python
|
||||||
- |-
|
- |-
|
||||||
|
|
||||||
|
@ -727,6 +728,7 @@ for:
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- pwd
|
- pwd
|
||||||
|
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
- conan install . -s os=Macos -s os.version=${MACOS_DEPLOYMENT_TARGET} --build=missing
|
- conan install . -s os=Macos -s os.version=${MACOS_DEPLOYMENT_TARGET} --build=missing
|
||||||
- qbs setup-toolchains --detect
|
- qbs setup-toolchains --detect
|
||||||
- qbs config --list profiles
|
- qbs config --list profiles
|
||||||
|
@ -798,11 +800,11 @@ for:
|
||||||
# with a UI dialog asking for the certificate password, which we can't
|
# with a UI dialog asking for the certificate password, which we can't
|
||||||
# use in a headless CI environment
|
# use in a headless CI environment
|
||||||
# Create the keychain with a password ($MACOS_CI_KEYCHAIN_PWD)
|
# Create the keychain with a password ($MACOS_CI_KEYCHAIN_PWD)
|
||||||
- security create-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain
|
- security create-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
# Make the custom keychain default, so xcodebuild will use it for signing
|
# Make the custom keychain default, so xcodebuild will use it for signing
|
||||||
- security default-keychain -s build.keychain
|
- security default-keychain -s $HOME/Library/Keychains/build.keychain
|
||||||
# Unlock the keychain
|
# Unlock the keychain
|
||||||
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain
|
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
# Check if System.keychain is not cluttered
|
# Check if System.keychain is not cluttered
|
||||||
# good: 60K
|
# good: 60K
|
||||||
# bad: 25MB
|
# bad: 25MB
|
||||||
|
@ -815,13 +817,13 @@ for:
|
||||||
- curl https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer --output $HOME/DeveloperIDG2CA.cer --silent
|
- curl https://www.apple.com/certificateauthority/DeveloperIDG2CA.cer --output $HOME/DeveloperIDG2CA.cer --silent
|
||||||
- sudo security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign
|
- sudo security import $HOME/DeveloperIDG2CA.cer -k /Library/Keychains/System.keychain -T /usr/bin/codesign
|
||||||
# 3) Developer ID
|
# 3) Developer ID
|
||||||
- security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign
|
- security import certificate.p12 -k $HOME/Library/Keychains/build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign
|
||||||
# Delete the files, we no longer need them
|
# Delete the files, we no longer need them
|
||||||
- rm $HOME/AppleWWDRCAG3.cer
|
- rm $HOME/AppleWWDRCAG3.cer
|
||||||
- rm $HOME/DeveloperIDG2CA.cer
|
- rm $HOME/DeveloperIDG2CA.cer
|
||||||
- rm certificate.p12
|
- rm certificate.p12
|
||||||
# Set the partition list (sort of like an access control list)
|
# Set the partition list (sort of like an access control list)
|
||||||
- security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "$MACOS_CI_KEYCHAIN_PWD" build.keychain
|
- security set-key-partition-list -S "apple-tool:,apple:,codesign:" -s -k "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
# Echo the identity, just so that we know it worked.
|
# Echo the identity, just so that we know it worked.
|
||||||
# This won't display anything secret.
|
# This won't display anything secret.
|
||||||
- security find-identity -v -p codesigning
|
- security find-identity -v -p codesigning
|
||||||
|
@ -834,6 +836,7 @@ for:
|
||||||
- python3 --version
|
- python3 --version
|
||||||
- whereis python3
|
- whereis python3
|
||||||
- sudo ln -s -f /usr/bin/python3 /usr/local/bin/python
|
- sudo ln -s -f /usr/bin/python3 /usr/local/bin/python
|
||||||
|
- sudo ln -s /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/usr/bin/python
|
||||||
- whereis python
|
- whereis python
|
||||||
- sudo python3 -m pip install --upgrade pip
|
- sudo python3 -m pip install --upgrade pip
|
||||||
- pip3 install --user --upgrade pip dropbox conan==1.60
|
- pip3 install --user --upgrade pip dropbox conan==1.60
|
||||||
|
@ -846,6 +849,7 @@ for:
|
||||||
|
|
||||||
build_script:
|
build_script:
|
||||||
- pwd
|
- pwd
|
||||||
|
- security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" $HOME/Library/Keychains/build.keychain
|
||||||
- conan install . -s os=Macos -s os.version=${MACOS_DEPLOYMENT_TARGET} --build=missing
|
- conan install . -s os=Macos -s os.version=${MACOS_DEPLOYMENT_TARGET} --build=missing
|
||||||
- qbs setup-toolchains --detect
|
- qbs setup-toolchains --detect
|
||||||
- qbs config --list profiles
|
- qbs config --list profiles
|
||||||
|
|
Loading…
Reference in a new issue