aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Yang <paulyang1211@gmail.com>2018-01-24 09:43:39 -0800
committerBo Yang <paulyang1211@gmail.com>2018-01-24 09:43:39 -0800
commit1e8e48fe3d2e7a4e08c9dd8e37f615df645cdf70 (patch)
treebdf51f3786cf2af5af2bbc9921ceff8c13005238
parenta7bfea9b210f92f3a0b6a5d1818413d3db422253 (diff)
downloadprotobuf-1e8e48fe3d2e7a4e08c9dd8e37f615df645cdf70.tar.gz
protobuf-1e8e48fe3d2e7a4e08c9dd8e37f615df645cdf70.tar.bz2
protobuf-1e8e48fe3d2e7a4e08c9dd8e37f615df645cdf70.zip
Add config.sh
-rw-r--r--config.sh17
1 files changed, 17 insertions, 0 deletions
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'))"
+}