

Oh yea, testing_testing is just a name I used, you can name it anything you want. gitlab-ci.yml file:-Įnter fullscreen mode Exit fullscreen mode The CI configuration will look like this and should be inside your. gitlab-ci.yml file so we can create our CI configuration by doing this:. Open your terminal and move to the directory where the project file is located then create a file named. I will be using terminal in this tutorial. You can create this file through your already created Gitlab project or via your terminal. GitLab CI looks for this particular file within your repository to determine how it should test the code. The Gitlab runner will search for this file in your repository and execute it.

This file contains a steps by step description on how your project will be built. gitlab-ci.yml and it should be in the root of your repository. To setup a CI environment, you will need to create a file named.

A public repository is accessible to the public through search or direct access using the project’s URL, conversely, a private repository is only accessible to members invited to the repository by the Owner or Maintainer. Create a repository, you can name it anything you like, you can also choose to either make the repository public or private. Sign up for an account if you do not have one, or log into your existing account if you already have an account. Gitlab is a web-based Git-repository manager, where code can be hosted.

Having a proper CI/CD environment will enable bugs to be caught earlier and developers can review code faster and fix it.īy the end of this article, you will have the basic understanding on how to set up a CI/CD environment on Gitlab. Each check-in is then verified by an automated build, allowing teams to detect problems to fix early.Ĭontinuous Delivery (CD) is a software engineering approach in which continuous integration, automated testing, and automated deployment capabilities allow software to be developed and deployed with minimal human intervention. So I decided to start my first article on dev.to by discussing how to set-up Continuous Integration (CI) and Continuous Delivery (CD), feedback is welcome it helps!Ĭontinuous Integration (CI) is a practice that requires developers to integrate code into a shared repository several times.
