Skip to content
This repository has been archived by the owner on Nov 9, 2018. It is now read-only.

Commit

Permalink
Define deployment target (#19)
Browse files Browse the repository at this point in the history
* Use QT_VER 5.9.4

* Use https

* Wait 3s

* Deselect qt.594.src

* Do not wait longer than 15 minutes

* Revert bf633a3

* Test: download pkg, attempt install

* Test: change target location

* Test: try another target location

* Test: try again with $HOME

* Test: show me where you are

* Test: go on...

* Test: go on...

* Test: install python in /usr/local/bin

* Test: try sudo

* Use Python from python.org

* Wait for 20 minutes

* Add --osx-use-libc++

* Cleanup

* only build master and PRs

* Use the same build command for both 5.6 and 5.9

* Try patch: https://codereview.qt-project.org/#/c/220110/

* Try patch: https://codereview.qt-project.org/#/c/220110/

* Try patch for 5.9 branch

* Fix typo

* Try patch (fix yet another typo)

* Remove patch
  • Loading branch information
fredrikaverpil committed Feb 14, 2018
1 parent 21eb8d9 commit e9f0abf
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 43 deletions.
61 changes: 41 additions & 20 deletions .travis.yml
Expand Up @@ -9,14 +9,17 @@ matrix:
- NAME="Python 2.7, Qt 5.6"
- PYSIDE_BRANCH=5.6
- QT_VER=5.6.3
- BREW_PY="python"
- PY_VER=2.7.13
- PY_URL_PART=https://www.python.org/ftp/python/${PY_VER}
- PY_FILENAME=python-${PY_VER}-macosx10.6.pkg
- CI_PY=/usr/local/bin/python2
- CI_CMAKE=/usr/local/bin/cmake
- CI_QMAKE=${HOME}/Qt-${QT_VER}/${QT_VER}/clang_64/bin/qmake
- QT_INSTALLER_FILE=qt-opensource-mac-x64-clang-${QT_VER}
- QT_INSTALL_PATH=${HOME}/Qt-${QT_VER}
- CI_DEPLOY_TARGET=10.7
os: osx
osx_image: xcode6.4
osx_image: xcode8.3
language: generic
# cache:
# timeout: 2000
Expand All @@ -27,14 +30,17 @@ matrix:
- NAME="Python 3.5, Qt 5.6"
- PYSIDE_BRANCH=5.6
- QT_VER=5.6.3
- BREW_PY=https://raw.githubusercontent.com/Homebrew/homebrew-core/ec545d45d4512ace3570782283df4ecda6bb0044/Formula/python3.rb
- PY_VER=3.5.4
- PY_URL_PART=https://www.python.org/ftp/python/${PY_VER}
- PY_FILENAME=python-${PY_VER}-macosx10.6.pkg
- CI_PY=/usr/local/bin/python3
- CI_CMAKE=/usr/local/bin/cmake
- CI_QMAKE=${HOME}/Qt-${QT_VER}/${QT_VER}/clang_64/bin/qmake
- QT_INSTALLER_FILE=qt-opensource-mac-x64-clang-${QT_VER}
- QT_INSTALL_PATH=${HOME}/Qt-${QT_VER}
- CI_DEPLOY_TARGET=10.7
os: osx
osx_image: xcode6.4
osx_image: xcode8.3
language: generic
# cache:
# timeout: 2000
Expand All @@ -45,14 +51,17 @@ matrix:
- NAME="Python 3.6, Qt 5.6"
- PYSIDE_BRANCH=5.6
- QT_VER=5.6.3
- BREW_PY=https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/python3.rb
- PY_VER=3.6.4
- PY_URL_PART=https://www.python.org/ftp/python/${PY_VER}
- PY_FILENAME=python-${PY_VER}-macosx10.6.pkg
- CI_PY=/usr/local/bin/python3
- CI_CMAKE=/usr/local/bin/cmake
- CI_QMAKE=${HOME}/Qt-${QT_VER}/${QT_VER}/clang_64/bin/qmake
- QT_INSTALLER_FILE=qt-opensource-mac-x64-clang-${QT_VER}
- QT_INSTALL_PATH=${HOME}/Qt-${QT_VER}
- CI_DEPLOY_TARGET=10.7
os: osx
osx_image: xcode6.4
osx_image: xcode8.3
language: generic
# cache:
# timeout: 2000
Expand All @@ -62,14 +71,17 @@ matrix:
- env:
- NAME="Python 2.7, Qt 5.9"
- PYSIDE_BRANCH=5.9
- QT_VER=5.9.3
- BREW_PY=""
- QT_VER=5.9.4
- PY_VER=2.7.13
- PY_URL_PART=https://www.python.org/ftp/python/${PY_VER}
- PY_FILENAME=python-${PY_VER}-macosx10.6.pkg
- CI_PY=/usr/local/bin/python2
- CI_CMAKE=/usr/local/bin/cmake
- CI_QMAKE=${HOME}/Qt-${QT_VER}/${QT_VER}/clang_64/bin/qmake
- LIBCLANG_FILE=libclang-release_50-mac.7z
- QT_INSTALLER_FILE=qt-opensource-mac-x64-${QT_VER}
- QT_INSTALL_PATH=${HOME}/Qt-${QT_VER}
- CI_DEPLOY_TARGET=10.10
os: osx
osx_image: xcode8.3
language: generic
Expand All @@ -81,14 +93,17 @@ matrix:
- env:
- NAME="Python 3.5, Qt 5.9"
- PYSIDE_BRANCH=5.9
- QT_VER=5.9.3
- BREW_PY=https://raw.githubusercontent.com/Homebrew/homebrew-core/ec545d45d4512ace3570782283df4ecda6bb0044/Formula/python3.rb
- QT_VER=5.9.4
- PY_VER=3.5.4
- PY_URL_PART=https://www.python.org/ftp/python/${PY_VER}
- PY_FILENAME=python-${PY_VER}-macosx10.6.pkg
- CI_PY=/usr/local/bin/python3
- CI_CMAKE=/usr/local/bin/cmake
- CI_QMAKE=${HOME}/Qt-${QT_VER}/${QT_VER}/clang_64/bin/qmake
- LIBCLANG_FILE=libclang-release_50-mac.7z
- QT_INSTALLER_FILE=qt-opensource-mac-x64-${QT_VER}
- QT_INSTALL_PATH=${HOME}/Qt-${QT_VER}
- CI_DEPLOY_TARGET=10.10
os: osx
osx_image: xcode8.3
language: generic
Expand All @@ -100,14 +115,17 @@ matrix:
- env:
- NAME="Python 3.6, Qt 5.9"
- PYSIDE_BRANCH=5.9
- QT_VER=5.9.3
- BREW_PY=https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/python3.rb
- QT_VER=5.9.4
- PY_VER=3.6.4
- PY_URL_PART=https://www.python.org/ftp/python/${PY_VER}
- PY_FILENAME=python-${PY_VER}-macosx10.6.pkg
- CI_PY=/usr/local/bin/python3
- CI_CMAKE=/usr/local/bin/cmake
- CI_QMAKE=${HOME}/Qt-${QT_VER}/${QT_VER}/clang_64/bin/qmake
- LIBCLANG_FILE=libclang-release_50-mac.7z
- QT_INSTALLER_FILE=qt-opensource-mac-x64-${QT_VER}
- QT_INSTALL_PATH=${HOME}/Qt-${QT_VER}
- CI_DEPLOY_TARGET=10.10
os: osx
osx_image: xcode8.3
language: generic
Expand All @@ -128,10 +146,12 @@ before_install:

install:
# Fix issue on xcode6.4: https://github.com/Homebrew/brew/issues/3299#issuecomment-335837083
- brew update
# - brew update

# Python
- if [ "$BREW_PY" != "" ]; then brew install ${BREW_PY} ; fi
- curl -L -O ${PY_URL_PART}/${PY_FILENAME}
- sudo installer -pkg ${PY_FILENAME} -target /
- ls -alh /usr/local/bin

# pip
- ${CI_PY} -m pip install --user --upgrade pip setuptools wheel
Expand Down Expand Up @@ -186,20 +206,21 @@ before_script:


script:
- ${CI_PY} pyside-setup/setup.py bdist_wheel --ignore-git --standalone --no-examples --qmake=${CI_QMAKE} --cmake=${CI_CMAKE} --jobs=3
- ls -alh pyside-setup/dist
- ${CI_PY} pyside-setup/setup.py bdist_wheel --ignore-git --standalone --no-examples --osx-use-libc++ --qmake=${CI_QMAKE} --cmake=${CI_CMAKE} --osx-deployment-target=${CI_DEPLOY_TARGET} --jobs=3


# before_cache:
# - echo "About to perform caching of Qt installation dir..."


# after_success:
# - ls -alh
after_success:
- ls -alh
- ls -alh pyside-setup/dist


# after_failure:
# - ls -alh
after_failure:
- ls -alh
- ls -alh pyside-setup/dist


# before_deploy:
Expand Down
Expand Up @@ -8,7 +8,7 @@ function Controller() {
}

Controller.prototype.WelcomePageCallback = function() {
gui.clickButton(buttons.NextButton);
gui.clickButton(buttons.NextButton, 3000);
}

Controller.prototype.CredentialsPageCallback = function() {
Expand All @@ -21,7 +21,7 @@ Controller.prototype.IntroductionPageCallback = function() {

Controller.prototype.TargetDirectoryPageCallback = function()
{
gui.currentPageWidget().TargetDirectoryLineEdit.setText(installer.value("HomeDir") + "/Qt-5.9.3");
gui.currentPageWidget().TargetDirectoryLineEdit.setText(installer.value("HomeDir") + "/Qt-5.9.4");
gui.clickButton(buttons.NextButton);
}

Expand All @@ -31,27 +31,27 @@ Controller.prototype.ComponentSelectionPageCallback = function() {
// widget.selectAll();
widget.deselectAll();

widget.selectComponent("qt.593.clang_64")
// widget.selectComponent("qt.593.doc")
// widget.selectComponent("qt.593.examples")
widget.selectComponent("qt.593.qtcharts")
widget.selectComponent("qt.593.qtcharts.clang_64")
widget.selectComponent("qt.593.qtdatavis3d")
widget.selectComponent("qt.593.qtdatavis3d.clang_64")
widget.selectComponent("qt.593.qtnetworkauth")
widget.selectComponent("qt.593.qtnetworkauth.clang_64")
widget.selectComponent("qt.593.qtpurchasing")
widget.selectComponent("qt.593.qtpurchasing.clang_64")
widget.selectComponent("qt.593.qtremoteobjects")
widget.selectComponent("qt.593.qtremoteobjects.clang_64")
widget.selectComponent("qt.593.qtscript")
widget.selectComponent("qt.593.qtspeech")
widget.selectComponent("qt.593.qtspeech.clang_64")
widget.selectComponent("qt.593.qtvirtualkeyboard")
widget.selectComponent("qt.593.qtvirtualkeyboard.clang_64")
widget.selectComponent("qt.593.qtwebengine")
widget.selectComponent("qt.593.qtwebengine.clang_64")
// widget.selectComponent("qt.593.src")
widget.selectComponent("qt.594.clang_64")
// widget.selectComponent("qt.594.doc")
// widget.selectComponent("qt.594.examples")
widget.selectComponent("qt.594.qtcharts")
widget.selectComponent("qt.594.qtcharts.clang_64")
widget.selectComponent("qt.594.qtdatavis3d")
widget.selectComponent("qt.594.qtdatavis3d.clang_64")
widget.selectComponent("qt.594.qtnetworkauth")
widget.selectComponent("qt.594.qtnetworkauth.clang_64")
widget.selectComponent("qt.594.qtpurchasing")
widget.selectComponent("qt.594.qtpurchasing.clang_64")
widget.selectComponent("qt.594.qtremoteobjects")
widget.selectComponent("qt.594.qtremoteobjects.clang_64")
widget.selectComponent("qt.594.qtscript")
widget.selectComponent("qt.594.qtspeech")
widget.selectComponent("qt.594.qtspeech.clang_64")
widget.selectComponent("qt.594.qtvirtualkeyboard")
widget.selectComponent("qt.594.qtvirtualkeyboard.clang_64")
widget.selectComponent("qt.594.qtwebengine")
widget.selectComponent("qt.594.qtwebengine.clang_64")
// widget.selectComponent("qt.594.src")
widget.selectComponent("qt.tools.qtcreator")

gui.clickButton(buttons.NextButton);
Expand Down

0 comments on commit e9f0abf

Please sign in to comment.