I have hosted my code (written in C++) on GitHub and wish to link it to a hosted Continuous Integration (CI) server like Travis CI or BuildHive. And then I'd like to see "build passing" or "build failing" on my project page. But when I checked the CI environments of these two services, Travis CI comes the closest with availability of gcc, git, cmake and sqlite3, but I'm missing another critical library which is Qt4, which is required for building my project. It should also be free, since it's a free and open source project.
Please tell me how I can do this? Thanks.
I need: gcc, git, cmake, sqlite3 and Qt4.
The following .travis.yml solves my problem. The answer can be found on this page: http://about.travis-ci.org/docs/user/build-configuration/#Installing-Packages-Using-apt
language: cpp
compiler: gcc
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq cmake sqlite3 qt4-dev-tools
before_script:
- mkdir build
- cd build
- cmake ..
script: make
notifications:
email:
- [email protected]
on_success: change
on_failure: always
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With