Difference between revisions of "Travis settings for Apertium"

From Apertium
Jump to navigation Jump to search
(on_failure is better as change than always)
m (Text replacement - "(chat|irc)\.freenode\.net" to "irc.oftc.net")
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
dist: trusty
dist: trusty
before_install:
before_install:
- wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash
- 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
- sudo apt-get install hfst apertium lttoolbox apertium-dev lttoolbox-dev libhfst48-dev cg3
script:
script:
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 28: Line 28:
dist: trusty
dist: trusty
before_install:
before_install:
- wget http://apertium.projectjj.com/apt/install-nightly.sh -O - | sudo bash
- 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
- 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
- curl -sS https://github.com/flammie/apertium-fin/archive/master.zip -o master.zip
- unzip master.zip
- unzip master.zip
- pushd apertium-fin-master && ./autogen.sh && ./configure && make && sudo make install && popd
- pushd apertium-fin-master && ./autogen.sh && ./configure && make && sudo make install && popd
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