richelbilderbeek / travis_cpp_tutorial

Tutorial how to use Travis CI with C++
GNU General Public License v3.0
170 stars 23 forks source link

Add: only test on Travis #13

Closed richelbilderbeek closed 7 years ago

richelbilderbeek commented 7 years ago
USER = $$(USER)
contains(USER, p230198) {
  message(Richels computer)
}

!contains(USER, p230198) {
  message(Not Richels computer)
}

IS_ON_TRAVIS = $$(TRAVIS)

count(IS_ON_TRAVIS, 0) {
  message(Not building on Travis)
}

count(IS_ON_TRAVIS, 1) {
  message(Building on Travis)
}
richelbilderbeek commented 7 years ago

Created the travis_qmake_gcc_cpp14_tdc GitHub to do so.