Skip to content

Commit 6dbc4e1

Browse files
authored
tests: use the specified perl to execute cpanm. (#2157)
1 parent 5e05fa3 commit 6dbc4e1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ before_install:
6464
- sudo apt install --only-upgrade ca-certificates
6565
- '! grep -n -P ''(?<=.{80}).+'' --color `find src -name ''*.c''` `find . -name ''*.h''` || (echo "ERROR: Found C source lines exceeding 80 columns." > /dev/stderr; exit 1)'
6666
- '! grep -n -P ''\t+'' --color `find src -name ''*.c''` `find . -name ''*.h''` || (echo "ERROR: Cannot use tabs." > /dev/stderr; exit 1)'
67-
- sudo cpanm --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)
68-
67+
- /usr/bin/env perl $(command -v cpanm) --sudo --notest Test::Nginx IPC::Run > build.log 2>&1 || (cat build.log && exit 1)
6968
install:
7069
- if [ ! -f download-cache/drizzle7-$DRIZZLE_VER.tar.gz ]; then wget -P download-cache http://openresty.org/download/drizzle7-$DRIZZLE_VER.tar.gz; fi
7170
- if [ ! -f download-cache/pcre-$PCRE_VER.tar.gz ]; then wget -P download-cache https://downloads.sourceforge.net/project/pcre/pcre/${PCRE_VER}/pcre-${PCRE_VER}.tar.gz; fi
@@ -143,4 +142,4 @@ script:
143142
- dig +short myip.opendns.com @resolver1.opendns.com || exit 0
144143
- dig +short @$TEST_NGINX_RESOLVER openresty.org || exit 0
145144
- dig +short @$TEST_NGINX_RESOLVER agentzh.org || exit 0
146-
- prove -I. -Itest-nginx/lib -r t/
145+
- /usr/bin/env perl $(command -v prove) -I. -Itest-nginx/lib -r t/

0 commit comments

Comments
 (0)