Explorar o código

Add config.sh

Bo Yang %!s(int64=7) %!d(string=hai) anos
pai
achega
1e8e48fe3d
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  1. 17 0
      config.sh

+ 17 - 0
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'))"
+}