forked from zerodha/pykiteconnect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
78 lines (74 loc) · 2.42 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
environment:
matrix:
# Python 2.7
- PYTHON: "C:\\Python27"
# Conda 2.7
- PYTHON_VERSION: 2.7
MINICONDA: "C:\\Miniconda"
# Python 3.5
- PYTHON: "C:\\Python35"
# Conda 3.5
- PYTHON_VERSION: 3.5
MINICONDA: "C:\\Miniconda35"
# Python 3.6
- PYTHON: "C:\\Python36"
# Conda 3.6
- PYTHON_VERSION: 3.6
MINICONDA: "C:\\Miniconda36"
# Python 3.7
- PYTHON: "C:\\Python37"
# Conda 3.7
- PYTHON_VERSION: 3.7
MINICONDA: "C:\\Miniconda37"
# Python 2.7 64-bit
- PYTHON: "C:\\Python27-x64"
# Conda 2.7 64-bit
- PYTHON_VERSION: 2.7
MINICONDA: "C:\\Miniconda-x64"
# Python 3.5 64-bit
- PYTHON: "C:\\Python35-x64"
# Conda 3.5 64-bit
- PYTHON_VERSION: 3.5
MINICONDA: "C:\\Miniconda35-x64"
# Python 3.6 64-bit
- PYTHON: "C:\\Python36-x64"
# Conda 3.6 64-bit
- PYTHON_VERSION: 3.6
MINICONDA: "C:\\Miniconda36-x64"
# Python 3.7 64-bit
- PYTHON: "C:\\Python37-x64"
# Conda 3.7 64-bit
- PYTHON_VERSION: 3.7
MINICONDA: "C:\\Miniconda37-x64"
install:
- ps: |
# install dependencies
if($env:MINICONDA -eq $null)
{
Write-Host "Setting python path"
$env:Path="$env:PYTHON;$env:PYTHON\Scripts;$env:Path"
[Environment]::SetEnvironmentVariable("Path", "$env:PYTHON;$env:PYTHON\Scripts;$env:Path", [EnvironmentVariableTarget]::Machine)
Get-Item Env:Path
python -m pip -qq install --upgrade pip
python -m pip -qq install --upgrade wheel
python -m pip -qq install --upgrade setuptools
}
else
{
Write-Host "Setting miniconda path"
$env:Path="$env:MINICONDA;$env:MINICONDA\Scripts;$env:Path"
[Environment]::SetEnvironmentVariable("Path", "$env:MINICONDA;$env:MINICONDA\Scripts;$env:Path", [EnvironmentVariableTarget]::Machine)
Get-Item Env:Path
conda config --set always_yes yes --set changeps1 no
conda update -q conda
conda info -a
conda install -q wheel
python -m pip -qq install "pyopenssl>=17.5.0" "requests>=2.18.4" "six>=1.11.0" "enum34>=1.1.6" "python-dateutil>=2.6.1" "autobahn[twisted]>=17.10.1"
python -m pip -qq install --ignore-installed --upgrade setuptools
}
python -m pip -qq install --upgrade pip
python setup.py install
python -m pip -qq install -r dev_requirements.txt
build: off
test_script:
- python setup.py test