Build fails with "Action failed: Configure the build"

Hi!

My build was running fine with all it’s tests passing. Now i’ve “just” added deployment to heroku and it crashes when configuring the build.

Anyone got an idea?

Cheers, kai

machine:
node:
version: 4.3.0
environment:
NODE_ENV: test
test:
pre:
- npm i -g npm
- npm i -g grunt-cli karma-cli bower gulp-cli
- gem install sass
- gem install compass
- npm i
- NODE_ENV=ci node server/bin/syncDb.js
override:
- NODE_ENV=ci npm test
deployment:
prod:
branch: master
heroku:
appname: api-flot-to

1 Like

I’ve just encountered the same issue: added a deployment section and my next build failed with that same error message. Did you manage to figure out what the issue is? That error message is useless.

Edit: In my case, I had a single space before the “—” at the start of my yaml file. Removing that space fixed the issue for me.

I had an extra colon in my test config sections in the circle.yml file.
test:
override:
- tox:
Removing that fixed the issues
test:
override:
- tox
Hop this helps, but in most cases it will just be a issue with your circle.yml structure

Lint your circleci for potential whitespace issue.

http://yaml-online-parser.appspot.com/

It looks like this can also be caused by an invalid package.json.