I working on a project (same project), and im trying to deploy conditionals for branches, example: anything merged into the
develop branch, I want to end up on
https://dev.mysite , but anything merged into the
master branch, I want deployed to
language: csharp mono: none sudo: required dist: xenial dotnet: 2.2 branches: only: - master - develop before_script: - chmod -R a+x scripts script: - "./scripts/docker-publish-travis.sh" after_success: - "./scripts/after-success.sh" notifications: email: on_success: never on_failure: always
is it even possible to add a conditional to the above
.travis.yml file so that if the branch is
develop , a different script is run?
script: - "./scripts/docker-publish-travis-develop.sh"
same path as develop.sh