Skip to content

Commit

Permalink
Make more effective use of travis cache
Browse files Browse the repository at this point in the history
  • Loading branch information
fdintino committed Mar 10, 2018
1 parent e98b5ed commit 48f1c8a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,26 @@ before_install:
(cd dl && tar -zxf nghttp2-${NGHTTP2}.tar.gz)
fi
(cd dl/nghttp2-${NGHTTP2} &&
./configure --prefix=/usr --disable-threads &&
[ -f Makefile ] || ./configure --prefix=/usr --disable-threads &&
make && sudo make install)
- |
if [ ! -e dl/curl-${CURL} ]; then
(cd dl && tar -zxf curl-${CURL}.tar.gz)
fi
(cd dl/curl-${CURL} && ./configure --with-nghttp2 --prefix=/usr/local && make && sudo make install)
(cd dl/curl-${CURL} &&
[ -f Makefile ] || ./configure --with-nghttp2 --prefix=/usr/local &&
make && sudo make install)
- sudo ldconfig
- sudo cp dl/cpanm /usr/local/bin/cpanm
- tar -zxf dl/nginx-${NGINX_VERSION}.tar.gz && mv nginx-${NGINX_VERSION} nginx
- cpanm --notest --local-lib=perl5 local::lib && eval $(perl -I perl5/lib/perl5/ -Mlocal::lib)
- cpanm --notest --local-lib=perl5 local::lib && eval $(perl -I perl5/lib/perl5/ -Mlocal::lib=./perl5)
- |
if [ ! -f perl5/lib/perl5/Test/Nginx.pm ]; then
cpanm --notest dl/test-nginx-${TESTNGINX_VER}.tar.gz
cpanm --notest --local-lib=perl5 dl/test-nginx-${TESTNGINX_VER}.tar.gz
fi
- |
if [ ! -f perl5/lib/perl5/Test/File.pm ]; then
cpanm --notest Test::File
cpanm --notest --local-lib=perl5 Test::File
fi
install:
Expand Down

0 comments on commit 48f1c8a

Please sign in to comment.