Failing PR building with: "We couldn't detect the settings for your project!"

bitbucket

#1

I have setup my CI to run tests an deploy to Heroku(only for master). The builds run successful when are run for master branch, but when are run for a PR they fail with following message:

My .circleci/config.yml is the following:

version: 2.0
jobs:
build:
docker:
- image: circleci/elixir:1.4.2
env:
- MIX_ENV=test
- POSTGRES_USER=root
- image: circleci/postgres:9.4.12-alpine
env:
- POSTGRES_USER=root
- MIX_ENV=test
working_directory: ~/circleci-demo-elixir-phoenix
steps:
- checkout
- run: mix local.rebar --force
- run: mix local.hex --force
- run: mix deps.get
- run: mix ecto.create
- run: mix ecto.migrate
- run: mix espec
- run: bash .circleci/setup-heroku.sh
- add_ssh_keys:
fingerprints:
- “48:a0:87:54:ca:75:32:12:c6:9e:a2:77:a4:7a:08:a4”
- deploy:
name: Deploy Master to Heroku
command: |
if [ “${CIRCLE_BRANCH}” == “master” ]; then
git push heroku-dev master
fi

Note: I’m using bitbucket

Thanks in advance!


#2