richelbilderbeek / testing_cpp_gui_applications_tutorial

Tutorial about testing C++ GUI applications
GNU General Public License v3.0
3 stars 0 forks source link

Detect if on Travis #10

Closed richelbilderbeek closed 7 years ago

richelbilderbeek commented 7 years ago

Write a bash function is_on_travis

richelbilderbeek commented 7 years ago

Did it!

$ ./is_on_travis_test
This script is run on a Travis CI server
The command "./is_on_travis_test" exited with 0.

(and yes, locally it detects it is local)