1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
PySolFC/scripts/travis-ci-build
Juhani Numminen 0d0b39e4bc travis: config rewrite to have osx working again
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.
2021-01-22 14:34:07 +02:00

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)