Fix POSIX::mblen mbstate_t initialization on threaded perls with glibc
[perl.git] / .travis.yml
1 language: c
2 cache: ccache
3
4 os:
5   - linux
6   - osx
7
8 compiler:
9   - gcc
10   - clang
11
12 install:
13   - git fetch --unshallow --tags # t/porting/cmp_version.t
14   # install & enable ccache on osx
15   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install ccache; fi
16   - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
17
18 env:
19     global:
20         - JOBS=4
21     matrix:
22         - CONFIGURE_ARGS='-Uusethreads'
23         - CONFIGURE_ARGS='-Dusethreads'
24         - CONFIGURE_ARGS='-DPERL_GLOBAL_STRUCT'
25         - CONFIGURE_ARGS='-DPERL_GLOBAL_STRUCT_PRIVATE'
26         - CONFIGURE_ARGS='-Duseshrplib -Dusesitecustomize'
27         - CONFIGURE_ARGS='-Duserelocatableinc'
28
29 # only use gcc on linux, and only use clang on osx for now
30 matrix:
31   exclude:
32   - compiler: clang
33     os: linux
34   - compiler: gcc
35     os: osx
36
37 script:
38   - ./Configure -des -Dusedevel -Uversiononly -Dcc="ccache $CC" $CONFIGURE_ARGS -Dprefix=$HOME/perl-blead -DDEBUGGING
39 # all script commands are always run
40 # rather than using one very long oneliner using '&&', just always check the build status
41   - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then TEST_JOBS=$JOBS make -j$JOBS test_harness_notty; fi
42   - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then make -j$JOBS install; fi
43   - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then $HOME/perl-blead/bin/perlivp; fi
44
45 addons:
46     apt:
47         packages:
48             - file
49             - cpio
50             - libdb-dev
51             - libgdbm-dev
52             - zlib1g-dev
53             - libbz2-dev
54
55 notifications:
56 ## use dedicated email for smoking ?
57 #  email:
58 #    recipients:
59 #      - perl5-porters@perl.org
60 #    on_success: never  # default: change
61 #    on_failure: always # default: always
62   irc:
63     nick: travisci
64     channels:
65       - "irc.perl.org#p5p-qa"
66 #      - "irc.perl.org#bot-test"
67     template:
68       - "Report for %{repository} (%{commit}) from %{author} (%{elapsed_time})"
69       - "Status: %{message}"
70       - "Build URL: %{build_url}"
71       - "GitHub URL: https://github.com/p5h/perl5demo/commit/%{commit}" # adjust this url to use the production repo
72     on_success: change # default: always
73     on_failure: always # default: always
74 #    use_notice: true