[Pkg-bitcoin-commits] [python-quamash] 193/269: Appveyor CI Config

Jonas Smedegaard dr at jones.dk
Fri Nov 24 11:26:32 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository python-quamash.

commit 480a062e769311fa60ee29e4000a35c646ebb38a
Author: Mark Harviston <mark.harviston at gmail.com>
Date:   Mon Jan 12 19:28:56 2015 -0800

    Appveyor CI Config
    
    Simple appveyor config that tests Python 3.3 & 3.4 (32-bit) with PySide.
---
 appveyor.yml         | 23 +++++++++++++++++++++++
 appveyor/install.ps1 | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/appveyor.yml b/appveyor.yml
new file mode 100644
index 0000000..ca5341e
--- /dev/null
+++ b/appveyor.yml
@@ -0,0 +1,23 @@
+environment:
+
+  matrix:
+    - PYTHON: "C:\\Python34"
+      PYTHON_VERSION: "3.4.1"
+      PYTHON_ARCH: "32"
+      QTIMPL: "PySide"
+
+    - PYTHON: "C:\\Python33"
+      PYTHON_VERSION: "3.3.5"
+      PYTHON_ARCH: "32"
+      QTIMPL: "PySide"
+
+init:
+  - "ECHO %PYTHON% %PYTHON_VERSION% %PYTHON_ARCH% %QTIMPL%"
+
+install:
+  - "powershell appveyor\\install.ps1"
+
+build: off
+
+test_script:
+  - "%PYTHON%\\Scripts\\py.test.exe"
diff --git a/appveyor/install.ps1 b/appveyor/install.ps1
new file mode 100644
index 0000000..9def5b7
--- /dev/null
+++ b/appveyor/install.ps1
@@ -0,0 +1,41 @@
+# Adapted from Sample script to install Python and pip under Windows
+# Authors: Olivier Grisel and Kyle Kastner
+# License: CC0 1.0 Universal: http://creativecommons.org/publicdomain/zero/1.0/
+# Adapted by Mark Harviston <mark.harviston at gmail.com>
+
+$BASE_URL = "https://www.python.org/ftp/python/"
+$GET_PIP_URL = "https://bootstrap.pypa.io/get-pip.py"
+$GET_PIP_PATH = "C:\get-pip.py"
+
+function InstallPip ($python_home) {
+    $pip_path = $python_home + "\Scripts\pip.exe"
+    $python_path = $python_home + "\python.exe"
+    if (-not(Test-Path $pip_path)) {
+        Write-Host "Installing pip..."
+        $webclient = New-Object System.Net.WebClient
+        $webclient.DownloadFile($GET_PIP_URL, $GET_PIP_PATH)
+        Write-Host "Executing:" $python_path $GET_PIP_PATH
+        Start-Process -FilePath "$python_path" -ArgumentList "$GET_PIP_PATH" -Wait -Passthru
+    } else {
+        Write-Host "pip already installed."
+    }
+}
+
+function InstallPackage ($python_home, $pkg) {
+    $pip_path = $python_home + "\Scripts\pip.exe"
+    & $pip_path install $pkg
+}
+
+function main () {
+    InstallPip $env:PYTHON
+    InstallPackage $env:PYTHON wheel
+    InstallPackage $env:PYTHON pytest
+    if($env:PYTHON_VERSION -match "^3.3"){
+        InstallPackage $env:PYTHON asyncio
+    }
+    if($env:QTIMPL -eq "PySide"){
+        InstallPackage $env:Python PySide
+    }
+}
+
+main

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/python-quamash.git



More information about the Pkg-bitcoin-commits mailing list