Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CircleCI with no tests

Tags:

circleci

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.

like image 411
Ela Avatar asked Feb 09 '16 23:02

Ela


People also ask

What is CircleCI test?

CircleCI allows you to automatically test your code before changes are merged. You can integrate testing tools and frameworks such as Jest, Mocha, pytest, JUnit, Selenium, XCTest, and more.

What is parallelism in CircleCI?

Parallelism is most often used to split up test suites. All of the copies of the job have the same instructions, but run with different variables. Parallelism is set in the CircleCI configuration file, and the number of parallel jobs counts toward your concurrency total.

What does checkout mean in CircleCI?

What does the "checkout" do? Special step used to check out source code to the configured path (defaults to the working_directory). The reason this is a special step is because it is more of a helper function designed to make checking out code easy for you.


1 Answers

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

test:   override:     - echo "test" 

This works for CircleCI 1.0

like image 150
Ela Avatar answered Sep 23 '22 01:09

Ela