From 1e8e48fe3d2e7a4e08c9dd8e37f615df645cdf70 Mon Sep 17 00:00:00 2001 From: Bo Yang Date: Wed, 24 Jan 2018 09:43:39 -0800 Subject: Add config.sh --- config.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 config.sh diff --git a/config.sh b/config.sh new file mode 100644 index 00000000..08f1dbc2 --- /dev/null +++ b/config.sh @@ -0,0 +1,17 @@ +# Define custom utilities +# Test for OSX with [ -n "$IS_OSX" ] + +function pre_build { + # Any stuff that you need to do before you start building the wheels + # Runs in the root directory of this repository. + : +} + +function run_tests { + # Runs tests on installed distribution from an empty directory + ASTROPY_INSTALL_DIR=$(dirname $(python -c 'import astropy; print(astropy.__file__)')) + + # Runs tests on installed distribution from an empty directory + python --version + python -c "import sys; import astropy; sys.exit(astropy.test(remote_data='none'))" +} -- cgit v1.2.3