How can I compile a project two different ways in Travis CI? -
How can I compile a project two different ways in Travis CI? -
i have project written using qt back upwards both qt4 , qt5.
currently have travis configured compile project using both gcc , clang on linux , osx.
i'd farther split project builds both qt4 , qt5 separate builds well, 8 different permutations in total splitting on os, compiler, , qt version.
my current travis.yml is
language: cpp os: - linux - osx compiler: - gcc - clang script: mkdir build && cd build && cmake .. -dwith_server=1 && create install: ./travis-dependencies.sh cache: apt
qt4 vs qt5 selection configured using additional cmake parameters.
how can alter split build matrix further?
the recommendation travis back upwards team utilize environment variables split build:
language: cpp env: - qt="-dwith_qt4=0" - qt="-dwith_qt4=1" os: - linux - osx compiler: - gcc - clang script: mkdir build && cd build && cmake .. $qt -dwith_server=1 && create install: ./travis-dependencies.sh cache: apt
travis-ci
Comments
Post a Comment