This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: White-space only
[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 24 # it's easy to miss dVAR
b6a6ce3e 25 - CONFIGURE_ARGS='-DPERL_GLOBAL_STRUCT_PRIVATE'
3ebb8d8d
TC
26 # test scripts can be sensitive to PERL_UNICODE, and check long doubles
27 - CONFIGURE_ARGS='-Duseshrplib -Dusesitecustomize -Duselongdouble' PERL_UNICODE='' LANG='en_US.UTF-8'
28 # we've rarely had a problem with non-Englush locales, and exercise quadmath
29 - CONFIGURE_ARGS='-Duseshrplib -Dusequadmath -Dusecbacktrace -Dusethreads' PERL_UNICODE='' LANG='de_DE.UTF-8'
6f1b38bf
N
30
31matrix:
e544a799 32 fast_finish: true
3135e2b2
TC
33
34script:
7d655fab
N
35 - ./Configure -des -Dusedevel -Uversiononly -Dcc="ccache $CC" $CONFIGURE_ARGS -Dprefix=$HOME/perl-blead -DDEBUGGING
36# all script commands are always run
37# rather than using one very long oneliner using '&&', just always check the build status
38 - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then TEST_JOBS=$JOBS make -j$JOBS test_harness_notty; fi
39 - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then make -j$JOBS install; fi
40 - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then $HOME/perl-blead/bin/perlivp; fi
3135e2b2
TC
41
42addons:
43 apt:
44 packages:
45 - file
46 - cpio
47 - libdb-dev
48 - libgdbm-dev
49 - zlib1g-dev
50 - libbz2-dev
7d655fab
N
51
52notifications:
53## use dedicated email for smoking ?
54# email:
55# recipients:
56# - perl5-porters@perl.org
57# on_success: never # default: change
58# on_failure: always # default: always
59 irc:
60 nick: travisci
61 channels:
62 - "irc.perl.org#p5p-qa"
63# - "irc.perl.org#bot-test"
64 template:
65 - "Report for %{repository} (%{commit}) from %{author} (%{elapsed_time})"
66 - "Status: %{message}"
67 - "Build URL: %{build_url}"
6f446f86 68 - "GitHub URL: https://github.com/%{repository_slug}/commit/%{commit}"
7d655fab
N
69 on_success: change # default: always
70 on_failure: always # default: always
b6a6ce3e 71# use_notice: true