Bo Yang пре 7 година
родитељ
комит
2c7212828c
1 измењених фајлова са 17 додато и 27 уклоњено
  1. 17 27
      appveyor.yml

+ 17 - 27
appveyor.yml

@@ -11,10 +11,8 @@ environment:
     MINGW_64: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin
     MINGW_64: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin
     BUILD_DLL: OFF
     BUILD_DLL: OFF
     UNICODE: ON
     UNICODE: ON
-    # NP_BUILD_DEP: "numpy==1.10.4"
-    # NP_TEST_DEP: "numpy==1.10.4"
-    # OTHER_BUILD_DEP: "cython jinja2"
-    # OTHER_TEST_DEP: "pytest-astropy"
+    PB_TEST_DEP: "six==1.9"
+    OTHER_TEST_DEP: "setuptools==38.5.1"
     WHEELHOUSE_UPLOADER_USERNAME: travis-worker
     WHEELHOUSE_UPLOADER_USERNAME: travis-worker
 
 
   matrix:
   matrix:
@@ -112,31 +110,23 @@ before_build:
 
 
 build_script:
 build_script:
     - CALL appveyor.bat
     - CALL appveyor.bat
-    # # Install the dependencies of the project.
-    # - pip install %NP_BUILD_DEP% %OTHER_BUILD_DEPENDS%
-    # # Build wheel
-    # - pip install wheel
-    # - cd %REPO_DIR%
-    # - git checkout %BUILD_COMMIT%
-    # - python setup.py bdist_wheel
-    # - cd ..
 
 
 test_script:
 test_script:
-    # # create test env
-    # - virtualenv --python %PYTHON%\Python.exe test_env
-    # - test_env\Scripts\activate.bat
-    # - where python
-    # - pip install %NP_TEST_DEP% %OTHER_TEST_DEP%
-
-    # # install from wheel
-    # - pip install --pre --no-index --find-links %REPO_DIR%\dist\ %PACKAGE_NAME%
-
-    # # Change into an innocuous directory and find tests from installation
-    # - mkdir for_testing
-    # - cd for_testing
-    # - python --version
-    # - python -c "import astropy; astropy.test(remote_data='none')"
-    # - cd ..
+    # create test env
+    - virtualenv --python %PYTHON%\Python.exe test_env
+    - test_env\Scripts\activate.bat
+    - where python
+    - pip install %PB_TEST_DEP%
+
+    # install from wheel
+    - pip install --pre --no-index --find-links %REPO_DIR%\python\dist\ %PACKAGE_NAME%
+
+    # Change into an innocuous directory and find tests from installation
+    - mkdir for_testing
+    - cd for_testing
+    - python --version
+    - python -c "import google.protobuf;"
+    - cd ..
 
 
 artifacts:
 artifacts:
     - path: "%REPO_DIR%\\python\\dist\\*"
     - path: "%REPO_DIR%\\python\\dist\\*"