aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBo Yang <paulyang1211@gmail.com>2018-03-01 12:33:59 -0800
committerBo Yang <paulyang1211@gmail.com>2018-03-01 12:46:48 -0800
commit2c7212828c386ff3b7fe3699d58d858d686e324a (patch)
treec1c1e6e4229761185eddc0fd0841480a26a78a9e
parent71c1d295d7483416b7a0c2254cf9c65ef0379ad3 (diff)
downloadprotobuf-2c7212828c386ff3b7fe3699d58d858d686e324a.tar.gz
protobuf-2c7212828c386ff3b7fe3699d58d858d686e324a.tar.bz2
protobuf-2c7212828c386ff3b7fe3699d58d858d686e324a.zip
Add test
-rw-r--r--appveyor.yml44
1 files changed, 17 insertions, 27 deletions
diff --git a/appveyor.yml b/appveyor.yml
index 63b59199..3c618937 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -11,10 +11,8 @@ environment:
MINGW_64: C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin
BUILD_DLL: OFF
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
matrix:
@@ -112,31 +110,23 @@ before_build:
build_script:
- 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:
- # # 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:
- path: "%REPO_DIR%\\python\\dist\\*"