Bo Yang пре 8 година
родитељ
комит
8612052ebb
2 измењених фајлова са 12 додато и 2 уклоњено
  1. 10 0
      appveyor.bat
  2. 2 2
      appveyor.yml

+ 10 - 0
appveyor.bat

@@ -0,0 +1,10 @@
+setlocal
+
+pip install wheel
+cd %REPO_DIR%\python
+git checkout %BUILD_COMMIT%
+sed -i 's/\[\'-Wno-write-strings\',/\[\]/g' setup.py
+sed -i '/Wno-invalid-offsetof/d' setup.py
+sed -i '/Wno-sign-compare/d' setup.py
+cat setup.py
+python setup.py bdist_wheel --cpp_implementation --compile_static_extension

+ 2 - 2
appveyor.yml

@@ -47,10 +47,10 @@ install:
     - curl -L -o protoc-%PROTOC_VERSION%.zip https://github.com/google/protobuf/releases/download/v%PROTOC_VERSION%/protoc-%PROTOC_VERSION%-win32.zip
     - 7z x protoc-%PROTOC_VERSION%.zip
     - del /Q protoc-%PROTOC_VERSION%.zip
-    - cd bin
-    - dir
+    - SET PATH=%cd%\bin;%PATH%
 
 build_script:
+    - CALL appveyor.bat
     # # Install the dependencies of the project.
     # - pip install %NP_BUILD_DEP% %OTHER_BUILD_DEPENDS%
     # # Build wheel