CI(appveyor.yml): Build wheel on building a tag
authorOleg Broytman <phd@phdru.name>
Sun, 1 Apr 2018 00:38:39 +0000 (03:38 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 1 Apr 2018 00:38:39 +0000 (03:38 +0300)
project_template/appveyor.yml

index 2acab3e..5f9b60e 100644 (file)
@@ -81,10 +81,12 @@ test_script:
   - "%CMD_IN_ENV% tox"
 
 #after_test:
-#  # If tests are successful, create binary package
-#  - "pip install wheel"
-#  - "%CMD_IN_ENV% python setup.py bdist_wheel"
-#  - ps: "ls dist"
+#  # If tests are successful and we've tested a tag, create binary package
+#  - if "%APPVEYOR_REPO_TAG%" == "true" (
+#      pip install wheel &&
+#      %CMD_IN_ENV% python setup.py bdist_wheel &&
+#      ls dist
+#    )
 #
 #artifacts:
 #  # Archive the generated packages in the ci.appveyor.com build report