From 9f90a140754b707c2974d1c447de58a923fcc8c6 Mon Sep 17 00:00:00 2001 From: Shlomi Fish Date: Sun, 14 Feb 2016 13:56:34 +0200 Subject: [PATCH] Fix travis by extracting a separate script --- .travis.yml | 2 +- scripts/travis-ci-build | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 scripts/travis-ci-build 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