所以我的经理让我从DEV分支启用自动部署(Heroku功能),以便使用Heroku Web GUI轻松控制从GitHub部署哪个分支。但是我们还有TravisCI用于SonaQube的代码分析,测试运行和部署到Heroku
我的问题是:如何从Heroku配置自动部署功能,以选择要部署的分支,但能够在此之前运行来自Travis的CI?
Travis文件示例:
sudo: false
language: node_js
node_js:
- '6'
cache:
directories:
- node_modules
install:
- npm install
script:
- npm run test
- npm run build
after_success:
deploy:
provider: heroku
api_key:
secure: ZxcrxysJfuxxaSpbtNY9cxZnfouqIzJVVjyOru5XNj6nWV/2OicUnmnd13FlwiDNl9zq7+N/jEwG4nSEmx+yYoLvs0IMauE5OXe8pLls11uMu+ExbpTMbNRW35hyHhxUO2K3tYtJlnYZ2lkzB0kWhwETH8/0cBNtEByMg+ivgwy8kJiUjZ2gDz86tEcgcO1eYMYMQ5SsK/odwVrfvVohdkX7mD197mxqk3awJwOUSH7LDykkFGiz8zyjCG472pRI6Mze91KCwbUmnWumY4OWHTyPHT05Ujxl9KKiczeG5mQjVlRvn07P5DXknZhXhmhvXp7XAPEB9Q9SpAM2P8klOzLDxqPgOIebOrpyQ0asn1rDHq0ULc3gwu5ONTgGpkTRAkIdFU3cfQwNDeuji2x5mjFzAVrMEss19kWnpZ1GqjrHqPkzi/hcG778cZ65SbESRSBOZUagsQtnq0DbhXMri1UtQWTKRWb4UeZ9NoweOdWgYry7eZkROCqIUhyJm047Tzqat1wz7IxfML6rrL1jpcYvM4oBrYVpYRh7cISWVvriupkQ3tTVNz+dCi8Z5JYiyNyTTttUmR3ZP0Trp2/jMJlyPFZdL4Z+Qa9PpnPWG62Sm07DrJuUcAEwgndMcsQefQva2DCPOTsAKH0m3tnhj+szbfU3YOd6ZqdmWxtaopY=
app: xxxxxxxxx
strategy: api
on:
repo: FortumSELisa/reactjs-spa-app
提前谢谢!