When we create PR against develop and main, the PR build is created properly in travis. However, when we create a PR against release/* branch, travis build is not getting created. It must be a travis config issue. What is it?
Hey @sjain,
Hard to say without seeing your .travis.yml
file. Can you give some snippets of it?
dist: bionic
language: ruby
cache:
- bundler
services:
- mysql
- redis-server
before_script:
- gem install bundler:1.17.3
- bundle install --jobs=3 --retry=3
- cp config/database.yml.template config/database.yml
- mysql -e 'CREATE DATABASE IF NOT EXISTS dbname;'
script:
- bundle exec rake db:test:prepare
- bundle exec rspec
- bundle exec cucumber
branches:
only:
- main
- develop
- release/.*
Looking at your current config, it seems to me it would only be triggering only one build when you open a PR from a branch of the repo. You may want to try:
branches:
only:
- main
- develop
- /^release\/.*$/
1 Like
This worked. Thanks.
Hey no problem @sjain. If you need more help with anything be sure to post back.
Cheers,
Montana Mendy
Travis CI Staff