Commit | Line | Data |
---|---|---|
3135e2b2 | 1 | language: c |
7d655fab | 2 | cache: ccache |
3135e2b2 TC |
3 | |
4 | os: | |
5 | - linux | |
3135e2b2 TC |
6 | |
7 | compiler: | |
8 | - gcc | |
3135e2b2 | 9 | |
e3483ccf N |
10 | install: |
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 | 16 | env: |
6f1b38bf | 17 | global: |
e3483ccf | 18 | - JOBS=4 |
6f1b38bf N |
19 | matrix: |
20 | - CONFIGURE_ARGS='-Uusethreads' | |
21 | - CONFIGURE_ARGS='-Dusethreads' | |
b6a6ce3e N |
22 | - CONFIGURE_ARGS='-DPERL_GLOBAL_STRUCT' |
23 | - CONFIGURE_ARGS='-DPERL_GLOBAL_STRUCT_PRIVATE' | |
24 | - CONFIGURE_ARGS='-Duseshrplib -Dusesitecustomize' | |
6f1b38bf N |
25 | |
26 | matrix: | |
e544a799 | 27 | fast_finish: true |
3135e2b2 TC |
28 | |
29 | script: | |
7d655fab N |
30 | - ./Configure -des -Dusedevel -Uversiononly -Dcc="ccache $CC" $CONFIGURE_ARGS -Dprefix=$HOME/perl-blead -DDEBUGGING |
31 | # all script commands are always run | |
32 | # rather than using one very long oneliner using '&&', just always check the build status | |
33 | - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then TEST_JOBS=$JOBS make -j$JOBS test_harness_notty; fi | |
34 | - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then make -j$JOBS install; fi | |
35 | - if [ "x$TRAVIS_TEST_RESULT" = "x0" ]; then $HOME/perl-blead/bin/perlivp; fi | |
3135e2b2 TC |
36 | |
37 | addons: | |
38 | apt: | |
39 | packages: | |
40 | - file | |
41 | - cpio | |
42 | - libdb-dev | |
43 | - libgdbm-dev | |
44 | - zlib1g-dev | |
45 | - libbz2-dev | |
7d655fab N |
46 | |
47 | notifications: | |
48 | ## use dedicated email for smoking ? | |
49 | # email: | |
50 | # recipients: | |
51 | # - perl5-porters@perl.org | |
52 | # on_success: never # default: change | |
53 | # on_failure: always # default: always | |
54 | irc: | |
55 | nick: travisci | |
56 | channels: | |
57 | - "irc.perl.org#p5p-qa" | |
58 | # - "irc.perl.org#bot-test" | |
59 | template: | |
60 | - "Report for %{repository} (%{commit}) from %{author} (%{elapsed_time})" | |
61 | - "Status: %{message}" | |
62 | - "Build URL: %{build_url}" | |
63 | - "GitHub URL: https://github.com/p5h/perl5demo/commit/%{commit}" # adjust this url to use the production repo | |
64 | on_success: change # default: always | |
65 | on_failure: always # default: always | |
b6a6ce3e | 66 | # use_notice: true |