GitLab Continuous Integration

GitLab has integrated CI to test, build and deploy your code

What Are The Advantages?

  • Integrated: GitLab CI is part of GitLab. You can use it for free on GitLab.com
  • Easy to learn: See our Quick Start guide
  • Beautiful: GitLab CI offers the same great experience as GitLab. Familiar, easy to use, and beautiful.
  • Scalable: Tests run distributed on separate machines of which you can add as many as you want
  • Faster results: Each build can be split in multiple jobs that run in parallel on multiple machines
  • Open source: CI is included with both the open source GitLab Community Edition and the proprietary GitLab Enterprise Edition

Features

  • Multi-platform: you can execute builds on Unix, Windows, OSX, and any other platform that supports Go.
  • Multi-language: build scripts are command line driven and work with Java, PHP, Ruby, C, and any other language.
  • Stable: your builds run on a different machine than GitLab.
  • Parallel builds: GitLab CI splits builds over multiple machines, for fast execution.
  • Realtime logging: a link in the merge request takes you to the current build log that updates dynamically.
  • Versioned tests: a .gitlab-ci.yml file that contains your tests, allowing everyone to contribute changes and ensuring every branch gets the tests it needs.
  • Pipeline: you can define multiple jobs per stage and you can trigger other builds.
  • Autoscaling: you can automatically spin up and down VM's to make sure your builds get processed immediately and minimize costs.
  • Build artifacts: you can upload binaries and other build artifacts to GitLab and browse and download them.
  • Test locally there are multiple executors and you can reproduce tests locally.
  • Docker support: you can easily spin up other Docker contains as a service as part of the test and build docker images.
  • Continuous Delivery (CD): Continuous delivery and deployment are easy with multiple types of jobs, and secure environmental variables.

Fully integrated with GitLab

  • Fully integrated with GitLab.
  • Quick project setup: Add projects with a single click, all hooks are setup automatically via the GitLab API.
  • Merge request integration: See the status of each build within the Merge Request in GitLab.

Architecture

GitLab CI is a part of GitLab, a web application with an API that stores its state in a database. It manages projects/builds and provides a nice user interface, besides all the features of GitLab.

GitLab Runner is an application which processes builds. It can be deployed separately and works with GitLab CI through an API.

In order to run tests, you need at least one GitLab instance and one GitLab Runner.


GitLab Runner

To perform the actual build, you need to install GitLab Runner which is written in Go.

It can run on any platform for which you can build Go binaries, including Linux, OSX, Windows, FreeBSD and Docker.

It can test any programming language including .Net, Java, Python, C, PHP and others.

GitLab Runner has many features including autoscaling,

Install GitLab Runner