Debian Codegraph @

doc/source/development/travis-ci.rst

raw
1 .. -*- rst -*-
2
3 Travis CI
4 =========
5
6 This section describes how to use Groonga on `Travis CI
7 <http://travis-ci.org/>`_. Travis CI is a hosted continuous
8 integration service for the open source community.
9
10 You can use Travis CI for your open source software. This section only
11 describes about Groonga related configuration. See `Travis CI:
12 Documentation <http://about.travis-ci.org/docs/>`_ about general
13 Travis CI configuration.
14
15 Configuration
16 -------------
17
18 Travis CI is running on 64-bit Ubuntu 14.04 LTS Server Edition. (See `Travis CI: About
19 Travis CI Environment
20 <http://about.travis-ci.org/docs/user/ci-environment/>`_.) You can
21 use apt-line for Ubuntu 14.04 LTS provided by Groonga project to install
22 Groonga on Travis CI.
23
24 You can custom build lifecycle by ``.travis.yml``. (See `Travis CI:
25 Configuration your Travis CI build with .travis.yml
26 <http://about.travis-ci.org/docs/user/build-configuration/>`_.) You
27 can use ``before_install`` hook or ``install`` hook. You should use
28 ``before_install`` if your software uses a language that is supported
29 by Travis CI such as Ruby. You should use ``install`` otherwise.
30
31 Add the following ``sudo`` and ``before_install`` configuration to
32 ``.travis.yml``::
33
34 sudo: required
35 before_install:
36 - curl --silent --location https://raw.githubusercontent.com/groonga/groonga/HEAD/data/travis/setup.sh | sh
37
38 ``sudo: required`` configuration is required because ``sudo`` command
39 is used in the setup script.
40
41 If you need to use ``install`` hook instead of ``before_install``, you
42 just have to replace ``before_install:`` with ``install:``.
43
44 With the above configuration, you can use Groonga for your build.
45
46 Examples
47 --------
48
49 Here are open source software that use Groonga on Travis CI:
50
51 * `rroonga <http://ranguba.org/#about-rroonga>`_ (Ruby bindings)
52
53 * `rroonga on Travis CI <http://travis-ci.org/#!/ranguba/rroonga>`_
54 * `.travis.yml for rroonga <https://github.com/ranguba/rroonga/blob/master/.travis.yml>`_
55
56 * `nroonga <http://nroonga.github.com/>`_ (node.js bindings)
57
58 * `nroonga on Travis CI <http://travis-ci.org/#!/nroonga/nroonga>`_
59 * `.travis.yml for nroonga <https://github.com/nroonga/nroonga/blob/master/.travis.yml>`_
60
61 * `logaling-command <http://logaling.github.com/>`_ (A glossary management command line tool)
62
63 * `logaling-command on Travis CI <http://travis-ci.org/#!/logaling/logaling-command>`_
64 * `.travis.yml for logaling-command <https://github.com/logaling/logaling-command/blob/master/.travis.yml>`_