Newbie - Completely confused!

I have checked out the documentation, but am still stumped. If someone could explain it to me like I am a three year old, I would love it.

I am using CircleCl in this repo:

https://github.com/IF-Apps/IF-Charts

Along with a few others. If someone could fork then pull with the correct changes and explain it, I would love it.

I get this warning:

It looks like we couldn’t infer test settings for your project. Refer to our “Setting your build up manually” document to get started. It should only take a few minutes.

I checked out the documentation, but it doesn’t help.

Thank you!

The github repository you linked to doesn’t contain any way to test it. CircleCI does automatically look for a few different ways to test you project, for instance if you use NPM it will check for a test script inside your package.json.

If you don’t want to run tests you can add this to your circle.yml:

test:
  override:
    - echo "no tests"

What do you want to use circleci for? Testing? Deploying?

2 Likes

Both really…

To tell the truth, I am a little shaky on what to use CircleCl for too!

What do you suggest?

1 Like

Okay, I have this at the moment

There was an error while parsing your circle.yml: deployment section :release must contain one of heroku:, commands:, or codedeploy:

Action failed: Configure the build

I currently have this in my circle.yml:

dependencies:
  cache_directories:
    - browserstack

deployment:
  master:
    branch: master
    owner: IF-Charts

machine:
  node:
    version: 4.0.0

Really confused.

Any suggestions on what I should do?

I found the problem above, it was because it was trying to refer to a Heroku server.

Are there any templates that I can use?

We need to know what you are trying to do before we can give any help. Why are you using CircleCI in the first place? What did you plan on doing with it?

Typically CircleCI is used to do Continuous Integration and Continuous Deployment.

Continuous Integration

The general idea is to test all changes that you are making to your code base. You can accomplish this with:

Software Testing in general is a huge topic with tons of concepts.

The way that you write tests varies depending on what language and framework you are using. Looking at your project it looks like it’s a basic web site with a bit of Javascript. Udacity has a great (free!) intro to JavaScript testing course.

Continuous Deployment

If your tests pass, then you can deploy your code to development, staging, production, etc… the specific way that you do this depends on what type of infrastructure you are deploying too. I think that Heroku is easiest to understand and our default integration is simple to set up.

How does CircleCI help you

Now that we have a basic context of what CI and CD is, we can talk about how CircleCI fits into this picture. CircleCI integrates with your version control system (in this case GitHub) and automatically runs a series of steps every time that we detect a change to your repository (when you push commits).

A CircleCI build consists of a series of steps which are generally:

  • Dependencies
  • Testing
  • Deployment

We have some inference that can detect these automatically if you are using best practices for standard projects. You can also configure each of these phases manually.

I hope this clears things up a bit. Good luck in your CI journey :slight_smile:

7 Likes