aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 7cf180d44e2b4d07d1bfdc3106bb5bedd7480c71 (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
language: perl
perl:
    - "5.22"
    - "5.18"
    - "5.16"
env:
    - TEST_ONLINE=1 TEST_INSTALL=1 TEST_MULTILIB=0
    - TEST_ONLINE=1 TEST_INSTALL=1 TEST_MULTILIB=1
    - TEST_ONLINE=1 TEST_INSTALL=1 TEST_MULTILIB=2
    - TEST_ONLINE=1 TEST_INSTALL=0
    - TEST_ONLINE=0 TEST_INSTALL=1 TEST_MULTILIB=0
    - TEST_ONLINE=0 TEST_INSTALL=1 TEST_MULTILIB=1
    - TEST_ONLINE=0 TEST_INSTALL=1 TEST_MULTILIB=2
    - TEST_ONLINE=0 TEST_INSTALL=0
sudo: required
install:
    - sudo bash t/travis-deps/install.sh
    - cpanm Text::Diff Capture::Tiny Test::Output Devel::Cover Test::Exit
script:
    - bash -c '
      PROVE=`which prove`;
      sudo
      PERL5OPT=-MDevel::Cover=-coverage,statement,branch,condition,path,subroutine,+ignore,t/,+ignore,prove,db,/home/travis/build/pink-mist/sbotools/cover_db
      $PROVE -v t/*.t;'
    - sudo chmod -R a+x cover_db;
      tar cvf cover_db.tar cover_db
addons:
    artifacts:
        paths: "./cover_db.tar"
notifications:
    irc:
        channels:
            - "chat.freenode.net#sbotools"
        on_success: change
        on_failure: change