Trying to return support for legacy Mac OS X version. [skip appveyor]

This commit is contained in:
Roman Telezhynskyi 2020-11-15 09:57:23 +02:00
parent 66fc63c04b
commit 378096b667

View File

@ -28,7 +28,14 @@ jobs:
compiler: clang compiler: clang
env: env:
- DEPLOY=true - DEPLOY=true
- LEGACY=false
osx_image: xcode11 osx_image: xcode11
- os: osx
compiler: clang
env:
- DEPLOY=true
- LEGACY=true
osx_image: xcode7.3
before_install: before_install:
- | - |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
@ -51,7 +58,12 @@ before_install:
sudo dpkg -i ccache_3.3.4-1_amd64.deb; sudo dpkg -i ccache_3.3.4-1_amd64.deb;
else else
brew update > /dev/null; brew update > /dev/null;
if [[ "$LEGACY" = false ]]; then
brew install qt5; brew install qt5;
else
unset SSL_CERT_FILE;
brew install https://gist.githubusercontent.com/dismine/c3ac01de38e12edcf22d9e05791adf82/raw/8e2743e6382fefaabfa37da00633ff801477b53c/qt5.rb;
fi
chmod -R 755 /usr/local/opt/qt5/* chmod -R 755 /usr/local/opt/qt5/*
fi fi
before_script: before_script:
@ -102,7 +114,11 @@ before_deploy:
- | - |
if [[ "$DEPLOY" == "true" ]]; then if [[ "$DEPLOY" == "true" ]]; then
../scripts/macfixqtdylibrpath.py $TRAVIS_BUILD_DIR/build/src/app/valentina/bin/Valentina.app; ../scripts/macfixqtdylibrpath.py $TRAVIS_BUILD_DIR/build/src/app/valentina/bin/Valentina.app;
if [[ "$LEGACY" = false ]]; then
tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvzf valentina-osx-${TRAVIS_COMMIT}.tar.gz Valentina.app/; tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvzf valentina-osx-${TRAVIS_COMMIT}.tar.gz Valentina.app/;
else
tar -C $TRAVIS_BUILD_DIR/build/src/app/valentina/bin --exclude "*.DS_Store" -cvzf valentina-osx-${TRAVIS_COMMIT}-legacy.tar.gz Valentina.app/;
fi
fi fi
deploy: deploy:
provider: bintray provider: bintray