diff --git a/.travis.yml b/.travis.yml index 6e7398c3..99dd8b61 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,4 @@ before_install: install: - sudo cpanm Test::TrailingSpace - which python -script: "PATH=\"$(perl -lE 'my @p = split/:/,$ENV{PATH}; print join q#:#, grep { ! m#\A/opt/python# } @p;')\" make test" +script: "sh -x scripts/travis-ci-build" diff --git a/scripts/travis-ci-build b/scripts/travis-ci-build new file mode 100644 index 00000000..b9f274b3 --- /dev/null +++ b/scripts/travis-ci-build @@ -0,0 +1,2 @@ +#!/bin/bash +PATH="$(perl -lE 'my @p = split/:/,$ENV{PATH}; print join q#:#, grep { ! m#\A/opt/python# } @p;')" make test || exit -1