This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perlxs.pod; rpc is considered obsolete
[perl5.git] / .travis.yml
CommitLineData
3135e2b2 1language: c
7d655fab 2cache: ccache
3135e2b2
TC
3
4os:
5 - linux
3135e2b2
TC
6
7compiler:
8 - gcc
3135e2b2 9
e3483ccf
N
10install:
11 - git fetch --unshallow --tags # t/porting/cmp_version.t
7d655fab 12 # install & enable ccache on osx
ab50f992
N
13 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install ccache; fi
14 - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
e3483ccf 15
3135e2b2 16env:
6f1b38bf 17 global:
e3483ccf 18 - JOBS=4
6f1b38bf 19 matrix:
3ebb8d8d
TC
20 # exercise a variety of build options
21 # threads often cause build issues
6f1b38bf
N
22 - CONFIGURE_ARGS='-Uusethreads'
23 - CONFIGURE_ARGS='-Dusethreads'
3ebb8d8d
TC
24 # test scripts can be sensitive to PERL_UNICODE, and check long doubles
25 - CONFIGURE_ARGS='-Duseshrplib -Dusesitecustomize -Duselongdouble' PERL_UNICODE='' LANG='en_US.UTF-8'
26 # we've rarely had a problem with non-Englush locales, and exercise quadmath
27 - CONFIGURE_ARGS='-Duseshrplib -Dusequadmath -Dusecbacktrace -Dusethreads' PERL_UNICODE='' LANG='de_DE.UTF-8'
6f1b38bf
N
28
29matrix:
e544a799 30 fast_finish: true
3135e2b2
TC
31
32script:
7d655fab
N
33 - ./Configure -des -Dusedevel -Uversiononly -Dcc="ccache $CC" $CONFIGURE_ARGS -Dprefix=$HOME/perl-blead -DDEBUGGING
34# all script commands are always run
35# rather than using one very long oneliner using '&&', just always check the build status
36 - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then TEST_JOBS=$JOBS make -j$JOBS test_harness_notty; fi
37 - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then make -j$JOBS install; fi
38 - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then $HOME/perl-blead/bin/perlivp; fi
3135e2b2
TC
39
40addons:
41 apt:
42 packages:
43 - file
44 - cpio
4df1a2df
KW
45 - libdb-dev
46 - libgdbm-dev
47 - zlib1g-dev
48 - libbz2-dev
7d655fab
N
49
50notifications:
51## use dedicated email for smoking ?
52# email:
53# recipients:
54# - perl5-porters@perl.org
55# on_success: never # default: change
56# on_failure: always # default: always
57 irc:
58 nick: travisci
59 channels:
60 - "irc.perl.org#p5p-qa"
61# - "irc.perl.org#bot-test"
62 template:
63 - "Report for %{repository} (%{commit}) from %{author} (%{elapsed_time})"
64 - "Status: %{message}"
65 - "Build URL: %{build_url}"
6f446f86 66 - "GitHub URL: https://github.com/%{repository_slug}/commit/%{commit}"
7d655fab
N
67 on_success: change # default: always
68 on_failure: always # default: always
b6a6ce3e 69# use_notice: true