Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in DevOps and Agile by (29.3k points)

I just got to know about Travis CI and went through some of their docs. It seems to be a nice solution for open source projects.

With my reading so far through Travis docs, I am doubtful whether I will be able to connect it to my personal hardware in some manner.

I am working on some IoT related projects written in C/C++ hosted on github. Building and publishing images on artifactory, on Travis CI, should not be a problem. But when it comes to testing, definitely it cannot be tested on their (Travis's) hardware. The binaries need to be put on my development board (raspberry pi) and then test cases should be executed. Once the test suit finishes, Travis CI should be notified of the results.

Is Travis allows such functionality? If not, then it would be a great limitation.

1 Answer

0 votes
by (50.2k points)

When it comes to hardware dependent code cannot be tested in your Travis hardware

But if you want to use Travis for showing test status publicly. Your best chance is running the tests on-premises using Jenkins, GitLab CI or any other CI server and then offering an API to Travis.

If you want to control things from within Travis, you could trigger builds from Travis using an HTTP call and then wait for the remote build to finish before showing its results. Both Jenkins and GitLab CI offer remote triggering.

But it requires your Continuous Integration servers to be publicly accessible which may be having a risk in terms of security.

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...