reorder build commands

This commit is contained in:
Oliver Gorwits
2018-01-30 09:54:08 +00:00
parent a5b7431070
commit e4e3debce0

View File

@@ -8,21 +8,22 @@ branches:
only: only:
- /^3\.\d{2}$/ - /^3\.\d{2}$/
- 'master' - 'master'
install: | before_install:
cpanm --quiet --notest PkgConfig Test::CChecker \ - mkdir ~/netdisco-mibs && cd ~/netdisco-mibs && \
Alien::zlib::Static \ curl -sL https://api.github.com/repos/netdisco/netdisco-mibs/tags | \
Alien::OpenSSL::Static \ jq '.[]|.tarball_url|select(test("tarball/\\d+\\.\\d+$"))' | \
Alien::SNMP::MAXTC && \ sort -rg | head -n1 | xargs -n1 curl -sL | tar --strip-components=1 -zxf -
mkdir ~/netdisco-mibs && cd ~/netdisco-mibs && \ - cpanm --quiet --notest PkgConfig Test::CChecker \
curl -sL https://api.github.com/repos/netdisco/netdisco-mibs/tags | \ Alien::zlib::Static \
jq '.[]|.tarball_url|select(test("tarball/\\d+\\.\\d+$"))' | \ Alien::OpenSSL::Static \
sort -rg | head -n1 | xargs -n1 curl -sL | tar --strip-components=1 -zxf - Alien::SNMP::MAXTC
script: | install: true
cd $TRAVIS_BUILD_DIR && \ before_script:
perl Build.PL && \ - cd $TRAVIS_BUILD_DIR
./Build && \ script:
PERL_MM_USE_DEFAULT=1 ./Build installdeps --cpan_client 'cpanm --quiet --notest' && \ - perl Build.PL && \
./Build test --test_files t/ --test_files xt/ PERL_MM_USE_DEFAULT=1 ./Build installdeps --cpan_client 'cpanm --quiet --notest' && \
./Build test --test_files t/ --test_files xt/
#notifications: #notifications:
# irc: # irc:
# on_success: always # on_success: always