Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.

Commit 4814bca

Browse files
committed
Merge pull request #284 from digidentity/add-howto-to-readme
Add howto to readme and convert roadmap into limitations
2 parents 2cbdb53 + 38f421f commit 4814bca

File tree

3 files changed

+40
-25
lines changed

3 files changed

+40
-25
lines changed

README.md

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,30 +9,37 @@
99

1010
### Requirements
1111

12-
GitLab CI is designed for the Linux operating system.
13-
1412
GitLab CI officially supports (recent versions of) these Linux distributions:
1513

1614
* Ubuntu Linux
1715
* Debian/GNU Linux
1816

1917
Additionally GitLab CI requires:
2018

19+
* GitLab 6.0+
2120
* ruby 1.9.3
2221
* MySQL or PostgreSQL
2322

24-
This version (3.x) is designed for GitLab 5.3+.
23+
__If you want to use GitLab CI without GitLab or with older versions of GitLab you need to use [2-2-stable](https://github.com/gitlabhq/gitlab-ci/tree/2-2-stable#gitlab-ci-is-an-open-source-continuous-integration-server)__
24+
25+
### Limitations
2526

26-
__If you want to use GitLab CI without GitLab or with older versions you need to use [2-2-stable](https://github.com/gitlabhq/gitlab-ci/tree/2-2-stable#gitlab-ci-is-an-open-source-continuous-integration-server)__
27+
The following features are not in GitLab CI but merge requests are very welcome:
2728

28-
### How it works
29+
* Email notification
30+
* API documentation
31+
* Increase test coverage (the goal is to be above 85%)
32+
* Build artifacts access
33+
* Build pipeline / build promotion actions
2934

30-
__GitLab CI__ is a web application with API and connect to db.
31-
It manage projects/builds and provide a nice user interface.
32-
It uses GitLab application to authenticate users.
35+
### Architecture
3336

34-
__GitLab CI Runner__ is a pure ruby application which process builds.
35-
It can be deployed separately and work with GitLab CI through API.
37+
__GitLab CI__ is a web application with an API and it connect to the db.
38+
It manage projects/builds and provides a nice user interface.
39+
It uses the GitLab application API to authenticate users.
40+
41+
__GitLab CI Runner__ is a pure ruby application which processes builds.
42+
It can be deployed separately and works with GitLab CI through an API.
3643

3744
In order to run tests you need at least 1 __GitLab CI__ instance and 1 __GitLab CI Runner__.
3845
However, for running several builds at the same time you may want to setup more than one __GitLab CI Runner__.
@@ -45,18 +52,36 @@ Possible Cases:
4552

4653
![screen](https://raw.github.com/gitlabhq/gitlab-ci/master/app/assets/images/arch.jpg)
4754

48-
The runner runs the line below and then runs the commands in your projects settings
49-
50-
cd /gitlab-ci-runner/tmp/builds && git clone git@gitlab_server_fqdn:group/project.git project-1 && cd project-1 && git checkout master
51-
5255
For more information see:
5356
[Announcing GitLab CI 3.0](http://blog.gitlab.org/announcing-gitlab-ci-3.0/)
5457
and
5558
[Integrating GitLab CI With GitLab to Enable Distributed Builds](http://blog.gitlab.org/integrating-gitlab-ci-with-gitlab/)
5659

5760
### Installation
5861

59-
* [Installation and setup guide](https://github.com/gitlabhq/gitlab-ci/blob/master/doc/installation.md)
62+
* [Installation guide](https://github.com/gitlabhq/gitlab-ci/blob/master/doc/installation.md)
63+
64+
### How to add a new project to GitLab CI
65+
66+
1. Log in the GitLab CI web interface
67+
2. Press the 'Sync now' button
68+
3. Select your project with the 'Add' button
69+
4. Go the the Integration page and do the 'Complete (as service)' steps
70+
5. Go to the settings page to add a build script (see below for an example)
71+
6. Push a new commit to the project
72+
7. If the build fails then adjust the build script and press the 'Retry' button on the build page
73+
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
74+
75+
For your information, the runner runs the line below before it runs the commands in your build script:
76+
77+
cd /gitlab-ci-runner/tmp/builds && git clone git@gitlab_server_fqdn:group/project.git project-1 && cd project-1 && git checkout master
78+
79+
Build script example:
80+
81+
bundle install
82+
bundle exec rake db:create RAILS_ENV=test
83+
bundle exec rake db:migrate RAILS_ENV=test
84+
script/run_all_tests
6085

6186
### Getting help
6287

ROADMAP.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

doc/installation.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
# Requirements:
2-
3-
* GitLab 5.3+
4-
51
# Setup:
62

73
## 1. Packages / Dependencies

0 commit comments

Comments
 (0)