Travis settings for Apertium

From Apertium
Revision as of 11:53, 20 February 2017 by TommiPirinen (talk | contribs) (travis setup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This line is ignored by IRC bots.

Travis-ci is a "continuous integration" tool that works for example on github. What this actually means is that you can set an apertium language or language pair on github to automatically build and test on each commit. You only need to set up a script that installs dependencies on travis, e.g. ubuntu, and then runs the autotools and make check. The configuration file is written in yaml.

This is an example for a monolingual data using hfst (from [apertium-fin]):

dist: trusty
before_install:
    - wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash
    - sudo apt-get install hfst apertium lttoolbox apertium-dev lttoolbox-dev libhfst48-dev cg3
script:
    - ./autogen.sh
    - ./configure
    - make
    - make check
notifications:
    irc:
        channels:
            - "chat.freenode.net#apertium"
    on_failure: always
    on_success: never

This is an example of bilingual data, with non-released languages built into the test process (from [apertium-fin-deu]):

dist: trusty
before_install:
    - wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash
    - sudo apt-get install hfst apertium lttoolbox apertium-dev apertium-deu lttoolbox-dev libhfst48-dev cg3 apertium-lex-tools
    - wget https://github.com/flammie/apertium-fin/archive/master.zip
    - unzip master.zip
    - pushd apertium-fin-master && ./autogen.sh && ./configure && make && sudo make install && popd
script:
    - ./autogen.sh
    - ./configure
    - make
    - make check
notifications:
    irc:
        channels:
            - "chat.freenode.net#apertium"
    on_failure: always
    on_success: never