mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
Do not attempt to run python2 tests on osx. Homebrew updating was taking a long time, causing timeouts. Reduced the number of homebrew formulas to cut down install time. Some of the removed ones are already provided in the osx image. osx_image updated because only the newer ones work without travis's homebrew addon flag 'update: true' https://changelog.travis-ci.com/xcode-11-3-1-xcode-11-2-1-xcode-11-1-and-xcode11-images-updated-142286 Config updated with the help of live validator: https://config.travis-ci.com/explore Added sudo flag "-H" to "sudo pip*" as pip suggests. Trying to make use of cached of $HOME/perl_modules.
16 lines
341 B
Bash
16 lines
341 B
Bash
#!/bin/bash
|
|
set -e
|
|
|
|
# Functioned-out - may be useful later.
|
|
proc_path()
|
|
{
|
|
PATH="$(perl -lE 'my @p = split/:/,$ENV{PATH}; print join q#:#, grep { ! m#\A/opt/python# } @p;')" "$@"
|
|
}
|
|
|
|
if [ "x${TRAVIS_OS_NAME}" = "xosx" ]; then
|
|
export TEST_TAGS=SKIP_PY2
|
|
fi
|
|
make test
|
|
make dist
|
|
tar -xvf dist/PySolFC-*.tar.xz
|
|
(cd PySolFC-*/ && make test)
|