Difference between revisions of "Travis settings for Apertium"

From Apertium
Jump to navigation Jump to search
(wget -> curl)
m (Text replacement - "(chat|irc)\.freenode\.net" to "irc.oftc.net")
 
Line 18: Line 18:
 
irc:
 
irc:
 
channels:
 
channels:
- "chat.freenode.net#apertium"
+
- "irc.oftc.net#apertium"
 
on_failure: change
 
on_failure: change
 
on_success: never
 
on_success: never
Line 41: Line 41:
 
irc:
 
irc:
 
channels:
 
channels:
- "chat.freenode.net#apertium"
+
- "irc.oftc.net#apertium"
 
on_failure: always
 
on_failure: always
 
on_success: never
 
on_success: never

Latest revision as of 06:26, 27 May 2021

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:
    - curl -sS http://apertium.projectjj.com/apt/install-nightly.sh | 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:
            - "irc.oftc.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:
    - curl -sS http://apertium.projectjj.com/apt/install-nightly.sh | sudo bash
    - sudo apt-get install hfst apertium lttoolbox apertium-dev apertium-deu lttoolbox-dev libhfst48-dev cg3 apertium-lex-tools
    - curl -sS https://github.com/flammie/apertium-fin/archive/master.zip -o 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:
            - "irc.oftc.net#apertium"
    on_failure: always
    on_success: never