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,19 +8,20 @@ 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 \
Alien::OpenSSL::Static \
Alien::SNMP::MAXTC && \
mkdir ~/netdisco-mibs && cd ~/netdisco-mibs && \
curl -sL https://api.github.com/repos/netdisco/netdisco-mibs/tags | \ curl -sL https://api.github.com/repos/netdisco/netdisco-mibs/tags | \
jq '.[]|.tarball_url|select(test("tarball/\\d+\\.\\d+$"))' | \ jq '.[]|.tarball_url|select(test("tarball/\\d+\\.\\d+$"))' | \
sort -rg | head -n1 | xargs -n1 curl -sL | tar --strip-components=1 -zxf - sort -rg | head -n1 | xargs -n1 curl -sL | tar --strip-components=1 -zxf -
script: | - cpanm --quiet --notest PkgConfig Test::CChecker \
cd $TRAVIS_BUILD_DIR && \ Alien::zlib::Static \
perl Build.PL && \ Alien::OpenSSL::Static \
./Build && \ Alien::SNMP::MAXTC
install: true
before_script:
- cd $TRAVIS_BUILD_DIR
script:
- perl Build.PL && \
PERL_MM_USE_DEFAULT=1 ./Build installdeps --cpan_client 'cpanm --quiet --notest' && \ PERL_MM_USE_DEFAULT=1 ./Build installdeps --cpan_client 'cpanm --quiet --notest' && \
./Build test --test_files t/ --test_files xt/ ./Build test --test_files t/ --test_files xt/
#notifications: #notifications: