summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 804dc58c8a949ac73e03bfcb7d4ed6519c307001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
sudo: false
language: perl
perl:
    - "5.20-shrplib"
    - "5.18-shrplib"
    - "system-perl"
env:
    - CC=clang
    - CC=gcc

addons:
    apt:
        packages:
            - libperl-dev
            - elinks

before_install:
    - perl -V
    - ./autogen.sh --with-proxy --with-bot --with-perl=module
    - make dist
    - cd ..
    - tar xaf */irssi-*.tar.*
    - cd irssi-*

install:
    - ./configure --with-proxy --with-bot --with-perl=module --prefix=$HOME/irssi-build
    - make CFLAGS="-Wall -Werror"
    - make install

before_script:
    - cd
    - mkdir irssi-test
    - echo echo automated irssi launch test > irssi-test/startup;
      echo ^set settings_autosave off >> irssi-test/startup;
      echo ^set -clear log_close_string >> irssi-test/startup;
      echo ^set -clear log_day_changed >> irssi-test/startup;
      echo ^set -clear log_open_string >> irssi-test/startup;
      echo ^set log_timestamp '* ' >> irssi-test/startup;
      echo ^window log on >> irssi-test/startup
    - echo load perl >> irssi-test/startup
    - echo load proxy >> irssi-test/startup
    - echo ^quit >> irssi-test/startup
    - irssi-build/bin/irssi --home irssi-test
    - cat irc.log.*

script: true