Difference between revisions of "Travis settings for Apertium"

From Apertium
Jump to navigation Jump to search
(travis setup)
 
(on_failure is better as change than always)
Line 19: Line 19:
channels:
channels:
- "chat.freenode.net#apertium"
- "chat.freenode.net#apertium"
on_failure: always
on_failure: change
on_success: never
on_success: never
</pre>
</pre>



Revision as of 10:48, 18 April 2017

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: change
        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