CircleCI with no tests

Ela picture Ela · Feb 10, 2016 · Viewed 7.8k times · Source

I want to use CircleCI just to push my docker image to Dockerhub when I merge with master. I am using CircleCI in other projects where it is more useful and want to be consistent (as well as I am planning to add tests later). However all my builds fail because CircleCI says: "NO TESTS!", which is true. How can I disable CircleCI from checking for tests presence.

Answer

Ela picture Ela · Feb 10, 2016

I solved the problem by overriding the test section of circle.yml:

test:
  override:
    - echo "test"

This works for CircleCI 1.0