Doesn't work. Only line level logic is allowed in Travis scripts.

On Wednesday, May 28, 2014, David Ketcheson <notifications@github.com>
wrote:

> In .travis.yml:
>
> > @@ -13,10 +19,28 @@ before_install:
> >    - rm -rf pyclaw
> >    - ln -s ../ pyclaw
> >  install:
> > -  # no need for pip installer here if numpy is present
> > -  - python setup.py install
> > +  - export CLAWPACK=`pwd`
> > +  # Build the petsc4py dependency on Travis CI using HashDist
> > +  - if [[ "${TEST_PACKAGE}" == "petclaw" ]]; then
> > +      bash ../.travis_build_petsc4py.sh;
> > +    fi
>
> Not a big deal, but is there a reason not to combine this and the next if
> block?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/clawpack/pyclaw/pull/398/files#r13116319>
> .
>