This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
128 lines (127 loc) · 5.27 KB
/
.travis.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
language: c
sudo: false
dist: trusty
addons:
apt:
packages:
- build-essential
- libtool
- gperf
#- gcc-4.8
- gcc-multilib
- libgdbm-dev:i386
- libffi6:i386
- libffi-dev
- libffi-dev:i386
# FAQ: Up to 14 builds per week, with a maximum of 2 build per day (850Kloc)
# https://scan.coverity.com/projects/perl11-cperl
coverity_scan:
project:
name: perl11/cperl
notification_email: [email protected]
build_command_prepend: ./Configure -des -Dusedevel -Uversiononly -Dprefix=$HOME/cperl/usr
build_command: make -s -j4 ECHO=true
branch_pattern: coverity
#cache:
# apt: true
# needed for trusty gcc-multilib
#before_install:
# - dpkg --add-architecture i386
# - apt-get update -qq
# disable the default submodule logic, no .git-rr-cache
git:
submodules: false
# testing the new default image
# osx_image: xcode8.3
os:
- linux
#- osx
branches:
only:
- master
- /smoke/
- /coverity/
- /^maint-/
- /^cperl-/
env:
matrix:
- CONFIGURE_OPTION='' XCC='gcc' DEPLOY=1 HARNESS_TIMER=1
- CONFIGURE_OPTION='-Duse64bitint' XCC="'gcc\ -m32'" XBITS=32
- CONFIGURE_OPTION='-DDEBUGGING -Duseshrplib' XCC='clang'
- CONFIGURE_OPTION='-DNO_MATHOMS -Duse64bitall -Dusethreads -Duselongdouble' XCC='clang'
- CONFIGURE_OPTION='-Dusethreads -DDEBUGGING -Duse64bitall -Dld=c++' XCC='c++'
global:
secure: t+N5w1yMOdTvDIu7g09ujEQ80Rz0p/hV+uYnoPBex0pSHJKAvEWqL/PltzTNaOwoh9BRjJiSCaO6Owbpib5skZw+kwx6G+jeMzI+m00VI2P2//xUasG2KaYH1CTu+o2BE16cmZFjDs1R2UKYuTg/2lzY0SoUuNYcAr7MDUnc6hdx/uC0B37vW//MlDb/I+3bi4Wjkg+zH2T2dWqcaKP9cL4O1Oa9ApEZgaQcSv26MmBrGJm0dKaorF5vVf1xkVe6lfKVPCepcI424wkEbmBfZs5I8FajYdWscEQ0KxYY9paWUA9/71uREhuu2tecN9sc2ym2PV5ycHn0igixwuWqMV69iTO+CW7bX+1mFdfMq/TsnhRhwGVTpt0aBTup9VOkjZAqtqcc4ziQ15R6sIrAorzz97v2oFXL+q5FPQuqtY4opw8QsrnjAmonoBjNIZau8mX1VAyBTOTJjfY2bZQXNqpxFoGAfQgDhDjA+EYiQ8dK8glBOPxlEWeCeOFgA/ddrTFSTMCbDd3f0dJIOs8aQHAGcIpKEI2/3DY2JNvotku5e1us16v3YSLJwaWV4pEh3UaGhVU74TrzfA4NiOaf54OXSjLJVuBrpEMyPwVHxF5NA3W7zj9vACxcexRQAu3ms0J6XOaGYZuk5jYkefVpUILdPuSqVhRIs7Y4LqzqAYA=
matrix:
fast_finish: true
#exclude:
#- os: osx
# env: CONFIGURE_OPTION='-Duse64bitint' XCC="'gcc\ -m32'" XBITS=32
#- os: osx
# env: CONFIGURE_OPTION='-DDEBUGGING -Duseshrplib' XCC='clang'
#- os: osx
# env: CONFIGURE_OPTION='-DNO_MATHOMS -Duse64bitall -Dusethreads -Duselongdouble' XCC='clang'
allow_failures:
- env: CONFIGURE_OPTION='-Dusethreads -DDEBUGGING -Duse64bitall -Dld=c++' XCC='c++'
script:
- function shell_session_update { true; } ; CFG=$CONFIGURE_OPTION ;
CONFIGURE_OPTION="$CFG -Dusedevel";
test -z "$DEPLOY" && CONFIGURE_OPTION="$CONFIGURE_OPTION -Dprefix=$HOME/cperl/usr";
./Configure -des -Uversiononly -Dcc="$XCC" $CONFIGURE_OPTION &&
make -s -j4 || ( test "${TRAVIS_OS_NAME}" = "linux" -a
"${CFG}" = "-Dusethreads -DDEBUGGING -Duse64bitall -Dld=c++" && true )
# skip test on darwin debugging (too slow). also: do install only once
#was: TEST_JOBS=4 make -s -j4 test_harness && make -s install && $HOME/cperl/usr/bin/cperlivp -p;
- if [ "${TRAVIS_OS_NAME}" = "linux" -o -z "`echo $CONFIGURE_OPTION | grep 'DDEBUGGING'
2>/dev/null`" ]; then
if [ -n "$DEPLOY" ]; then
make -s -j4 all &&
SKIP_SLOW_TESTS=1 TEST_JOBS=4 make -s -j4 test_harness &&
travis_wait make -s -j4 install DESTDIR=$HOME/cperl-inst &&
travis_wait ./perl -Ilib $HOME/cperl-inst/usr/local/bin/cperlivp -p -d $HOME/cperl-inst ;
else
SKIP_SLOW_TESTS=1 TEST_JOBS=4 make -s -j4 test_harness ;
fi
fi
after_success:
# deploy on condition does not work
- if [ -z "$DEPLOY" ]; then exit 0; fi
before_deploy:
# every tag release
- if [ "${TRAVIS_OS_NAME}" = "linux" -a -n "$DEPLOY" ]; then
make distclean >/dev/null 2>/dev/null ;
git clean -dxf ;
perl Porting/makerel -x ;
elif [ "${TRAVIS_OS_NAME}" = "darwin" -a -n "$DEPLOY" ]; then
version=`Porting/perl_version` ;
out=../`git describe --long --tags --always`.pkg ;
echo "<pkg-info></pkg-info>" > .pkginfo ;
pkgbuild --identifier cperl --root DESTDIR=$HOME/cperl-inst
--info .pkginfo --version $version --ownership recommended $out ;
else
exit 0 ;
fi ;
deploy:
provider: releases
file_glob: true
file:
- ../cperl-*.tar.*
- ../cperl-*.pkg
api_key:
secure: "cF/kOo548pG4lL4BBCIS0T5ruFJO7xq6Tkcr+5SacXxfJKbdK9hue/nUahViskVNeI3c5VpggTJwMvS+kolAIJtasBbsea1eqCw2juQHkr7GWFOqJs9MzhFSO1+FPOBMiIQghA2eTJupDeZPjandjqy8J5BB+xXuIYjxQ+m5xxwxDNnZPjEw0+V2rTvfGAmNsQA80DpUsXfiUJNSa5rD7tujDUxbtnHrUVYfSfaHpO4o6n7vvtfOqNIKXigG6IaOXGvlVYt/Zwj9lyYcj8ZJpbKSSTEDiN5A8yugwAA/JrXI/CBO5Ex802napXxTj9vC1GQU58fxiTRo0aeTjwldU5TN82GFmyDXvPRcY/teJTTH19XlDeffle7KPmd2bk33wGloAOXUkKapQJVWh7SGer57XF/DYcycPJdcbxCVZCAHOua+JxA/4JNFKn+qyLqC6ASKGimmZ4Q0AmcGtGdR36vls9IaOIOBGXyKktoA9H4yI1sr+yAnrjZV9Fk6ngdjB7zXTMtR7ccc0BSb6xX5mo90XjJPogyaRzWJEeAJrFNluM15B6R2uwv3hR3MdSFuzEAdcMcWFeiGzyvGMcnGwk556CItSgdWz8cyXa3lkdkI405drAZ79oHhRUbbRrmCJnUd1MKpPev2wb5Y4KKk/O59s2mar5V5ORML35Pfq9w="
skip_cleanup: true
overwrite: true
on:
tags: true
condition: $DEPLOY=1
notifications:
irc:
channels:
- irc.perl.org#perl11
on_success: never
on_failure: never
# to enable skip_join, in IRC channel first execute `/mode -n`
skip_join: true
template:
- '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}
%{build_url}'