Răsfoiți Sursa

Add publish to bintray step to appveyor.yml

Remove Set-PSDebug -trace to prevent the 9000+ lines of debug output
from spamming the logs on appveyor.

Signed-off-by: Daniel Nephin <[email protected]>
Daniel Nephin 10 ani în urmă
părinte
comite
0e9ec8aa74
2 a modificat fișierele cu 10 adăugiri și 3 ștergeri
  1. 10 2
      appveyor.yml
  2. 0 1
      script/build-windows.ps1

+ 10 - 2
appveyor.yml

@@ -9,12 +9,20 @@ install:
 # Build the binary after tests
 build: false
 
+environment:
+  BINTRAY_USER: "docker-compose-roleuser"
+  BINTRAY_PATH: "docker-compose/master/windows/master/docker-compose-Windows-x86_64.exe"
+
 test_script:
   - "tox -e py27,py34 -- tests/unit"
-
-after_test:
   - ps: ".\\script\\build-windows.ps1"
 
+deploy_script:
+  - "curl -sS
+        -u \"%BINTRAY_USER%:%BINTRAY_API_KEY%\"
+        -X PUT \"https://api.bintray.com/content/%BINTRAY_PATH%?override=1&publish=1\"
+        --data-binary @dist\\docker-compose-Windows-x86_64.exe"
+
 artifacts:
   - path: .\dist\docker-compose-Windows-x86_64.exe
     name: "Compose Windows binary"

+ 0 - 1
script/build-windows.ps1

@@ -29,7 +29,6 @@
 #        .\script\build-windows.ps1
 
 $ErrorActionPreference = "Stop"
-Set-PSDebug -trace 1
 
 # Remove virtualenv
 if (Test-Path venv) {