There is a Qt docker image on Docker Hub: https://hub.docker.com/r/rabits/qt/
But, how to use it? Should I copy the qmake file from Desktop to Pipeline or sth?
Hi Simon,
To use this particular docker image you need to specify it in the image section of your bitbucket-pipelines.yml file. When the pipeline starts the commands you specify in the step section of the yaml will be executed within this docker container. To get started I recommend running the container locally and seeing that your build works within the container. From that point you'll need to specify a yml similar to this
image: rabits/qt
pipelines:
default:
- step:
script:
- build commands here
pipelines: default: - step: script: - sudo apt-get -qq update && sudo apt-get install -qq -y <packages> - mkdir ~/build && cd ~/build - qmake -r ~/src - make -j4 - make install INSTALL_ROOT=$HOME/dist - androiddeployqt --input ~/src/<android json> --output ~/dist --deployment bundled --gradle --release
It is likely you'll have to modify these commands slightly to accomodate your specific file locations and build quirks.
For more information please consult our documentation here:
https://confluence.atlassian.com/display/BITBUCKET/Get+started+with+Bitbucket+Pipelines
https://confluence.atlassian.com/display/BITBUCKET/Get+started+with+Bitbucket+Pipelines#GetstartedwithBitbucketPipelines-Step2:Pickatemplate
https://confluence.atlassian.com/display/BITBUCKET/Configure+bitbucket-pipelines.yml
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.