test_multibuild.sh 1.82 KB
Newer Older
1
# Test multibuild utilities
Ivan Pozdeev's avatar
Ivan Pozdeev committed
2
3
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
set -x
4
5
6
7
source common_utils.sh
source tests/utils.sh

source tests/test_common_utils.sh
8
source tests/test_fill_submodule.sh
Matthew Brett's avatar
Matthew Brett committed
9

10
11
if [ -n "$IS_OSX" ]; then
    source osx_utils.sh
12
    MB_PYTHON_OSX_VER=${MB_PYTHON_OSX_VER:-$(macpython_sdk_for_version $MB_PYTHON_VERSION)}
13

robbuckley's avatar
robbuckley committed
14
    brew tap homebrew/homebrew-core
15
16
17
18
    # To work round:
    # https://travis-ci.community/t/syntax-error-unexpected-keyword-rescue-expecting-keyword-end-in-homebrew/5623
    brew update

19
    get_macpython_environment $MB_PYTHON_VERSION ${VENV:-""} $MB_PYTHON_OSX_VER
20
21
    source tests/test_python_install.sh
    source tests/test_fill_pyver.sh
22
    source tests/test_fill_pypy_ver.sh
23
24
25
26
27
    source tests/test_osx_utils.sh
else
    source manylinux_utils.sh
    source tests/test_manylinux_utils.sh
fi
28
if [ -n "$TEST_BUILDS" ]; then
mattip's avatar
mattip committed
29
    MB_PYTHON_VERSION=${MB_PYTHON_VERSION:-3.7}
30
    if [ -n "$IS_OSX" ]; then
31
32
33
        # This checked in test_library_builders.
        # Will be set automatically by docker call in build_multilinux below.
        PYTHON_VERSION=${MB_PYTHON_VERSION}
34
        source tests/test_library_builders.sh
mattip's avatar
mattip committed
35
        source tests/config.sh
36
37
    elif [ ! -x "$(command -v docker)" ]; then
        echo "Skipping build tests; no docker available"
38
39
40
    else
        touch config.sh
        source travis_linux_steps.sh
Matthew Brett's avatar
Matthew Brett committed
41
        my_plat=${PLAT:-x86_64}
42
43
44
45
        build_multilinux $my_plat "
            source tests/test_manylinux_utils_docker.sh
            source tests/test_library_builders.sh
        "
mattip's avatar
mattip committed
46
        build_multilinux $my_plat "pip install simplejson"
mattip's avatar
mattip committed
47
        CONFIG_PATH=tests/config.sh
48
    fi
49
50
    build_index_wheel simplejson
    install_run $PLAT
51
fi
52

53
54
source tests/test_supported_wheels.sh

55
56
# Exit 1 if any test errors
barf
Ivan Pozdeev's avatar
Ivan Pozdeev committed
57
58
# Don't need Travis' machinery trace
set +x