Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Triggering builds of dependent projects in Travis CI

We have our single page javascript app in one repository and our backend server in another. Is there any way for a passing build on the backend server to trigger a build of the single page app?

We don't want to combine them into a single repository, but we do want to make sure that changes to one don't break the other.

like image 370
edebill Avatar asked Aug 20 '15 12:08

edebill


1 Answers

Yes, it is possible to trigger another Travis job after a first one succeeds. You can use the trigger-travis.sh script.

The script's documentation tells how to use it -- set an environment variable and add a few lines to your .travis.yml file.

like image 113
mernst Avatar answered Dec 31 '22 21:12

mernst