docker_test_wrap.sh 765 Bytes
Newer Older
1
2
3
4
#!/bin/bash
# Install and test steps on Linux
set -e

mattip's avatar
mattip committed
5
6
7
8
9
10
11
# "python" and "pip" are already on the path as part of the docker
# startup code in choose_python.sh, but the following are required and not
# necessarily already set

PYTHON_EXE=${PYTHON_EXE:-python}
PIP_CMD=${PIP_CMD:-pip}

12
13
14
15
# Get needed utilities
MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}")
source $MULTIBUILD_DIR/common_utils.sh

16
17
18
# Change into root directory of repo
cd /io

19
# Configuration for this package in `config.sh`.
Andrew Murray's avatar
Andrew Murray committed
20
# This can overwrite `install_run` and `install_wheel` (called from
21
22
# `install_run`). These are otherwise defined in common_utils.sh.
# `config.sh` must define `run_tests` if using the default `install_run`.
23
24
CONFIG_PATH=${CONFIG_PATH:-config.sh}
source "$CONFIG_PATH"
25

26
install_run