Giter VIP home page Giter VIP logo

gitlab-ci's Introduction

GitLab CI is an open-source continuous integration server

  • build status
  • Code Climate
  • Dependency Status
  • Coverage Status

Screen

Requirements

GitLab CI officially supports (recent versions of) these Linux distributions:

  • Ubuntu Linux
  • Debian/GNU Linux

Additionally GitLab CI requires:

  • GitLab 6.0+
  • ruby 1.9.3
  • MySQL or PostgreSQL

If you want to use GitLab CI without GitLab or with older versions of GitLab you need to use 2-2-stable

Limitations

The following features are not in GitLab CI but merge requests are very welcome:

  • Email notification
  • API documentation
  • Increase test coverage (the goal is to be above 85%)
  • Build artifacts access
  • Build pipeline / build promotion actions

Architecture

GitLab CI is a web application with an API and it connect to the db. It manage projects/builds and provides a nice user interface. It uses the GitLab application API to authenticate users.

GitLab CI Runner is a pure ruby 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 1 GitLab CI instance and 1 GitLab CI Runner. However, for running several builds at the same time you may want to setup more than one GitLab CI Runner.

Possible Cases:

  • 1 GitLab CI and N GitLab CI Runner instances on same machine
  • 1 GitLab CI and N GitLab CI Runner instances on different machines
  • 1 GitLab CI and N GitLab CI Runner instances on local machines

screen

For more information see: Announcing GitLab CI 3.0 and Integrating GitLab CI With GitLab to Enable Distributed Builds

Installation

How to add a new project to GitLab CI

  1. Log in the GitLab CI web interface
  2. Press the 'Sync now' button
  3. Select your project with the 'Add' button
  4. Go to the settings page of the project and add a build script (example given below)
  5. Go the the Integration page and do the 'Complete (as service)' steps, the press 'Test settings'
  6. A new build should become visible on the project page of GitLab CI
  7. If the build fails then adjust the build script and press the 'Retry' button on the build page
  8. If the build is green you are done, all new commits will be tested and you see the status of merge requests builds within GitLab

For your information, the runner runs the line below before it runs the commands in your build script:

cd /gitlab-ci-runner/tmp/builds && git clone git@gitlab_server_fqdn:group/project.git project-1 && cd project-1 && git checkout master

Build script example:

bundle install
bundle exec rake db:create RAILS_ENV=test
bundle exec rake db:migrate RAILS_ENV=test
script/run_all_tests

Getting help

gitlab-ci's People

Contributors

1989car avatar alakra avatar alexdo avatar andrielfn avatar antonio avatar cabeca avatar chuangbo avatar corpix avatar dejaaugustine avatar deradon avatar dosire avatar dzaporozhets avatar endoze avatar endzyme avatar jacobvosmaer avatar jameswritescode avatar jojosch avatar jperville avatar jtreml avatar mkasztelnik avatar mrichie avatar nathan-v avatar philzen avatar pschultz avatar qfox avatar raymiiorg avatar razielgn avatar sispheor avatar steveryherd avatar vsizov avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.