Introduction to Circle CI
CircleCI helps you ship better code, faster. To kick things off, you’ll need to add a config.yml file to your project and start building. After that, we’ll start a new build for you each time to make a PR. Similar to Travis; here also needed a YML file for configs and update.
Steps
1.Sign up using GitHub
- Create a folder named .circleci and add a fileconfig.yml (so that the file path in .circleci/config.yml).
- Populate the config.yml with the contents of the below file.
3. Update the config.yml to reflect your project’s configuration.
4. Push this change to GitHub.
Start building! This will launch your project on Circle CI, now it will analyze the code and check the system for PR.all done, the system will automatically test when making our PR.
Awesome, we got our error on build we can see what is the error.
The issue is we have mentioned is ruby in gem file as 2.3.1, but in the config of circle is 2.4.1. we will update it as another commit.
I Found it, circle CI using docker images pre-built ones, Here we are using the ruby version 2.3.1 in Gemfile and the config.yml added 2.4.1.
Going the below URL go to circle docs info — most matched version is 2.3; now we are committing using that code. All work fine.
Now we select the image, We can select Linux, IOS, or custom host in circle CI, For this tutorial I have used the Linux plan, hobbyist one. We can use containers.
Originally published at anoobbava.github.io on October 24, 2017.