-
Notifications
You must be signed in to change notification settings - Fork 19
/
appveyor.yml
37 lines (33 loc) · 1.35 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
# https://ci.appveyor.com/project/havardgulldahl/jottalib
build: false
environment:
matrix:
- PYTHON: "C:/Python27" # this is win32
LXML: "tests/contrib/lxml-3.6.4-cp27-cp27m-win32.whl"
#PY2EXE: py2exe_py2
REQUIREMENTS: "tests/requirements.win.txt"
- PYTHON: "C:/Python35"
LXML: "tests/contrib/lxml-3.6.4-cp35-cp35m-win32.whl"
#PY2EXE: "py2exe
REQUIREMENTS: "tests/requirements.win.txt"
#- PYTHON: "C:\\Python27-x64" #TODO: enable x64 build
# PYTHON_VERSION: "2.7.x" # currently 2.7.9
# PYTHON_ARCH: "64"
init:
- "ECHO %PYTHON%"
- "ECHO %LXML%"
- ps: Invoke-WebRequest "https://bootstrap.pypa.io/ez_setup.py" -OutFile "c:/ez_setup.py"
- ps: Invoke-WebRequest "https://bootstrap.pypa.io/get-pip.py" -OutFile "c:/get-pip.py"
- ps: "git config --global core.autocrlf false" # always use unix lineendings
install:
- "%PYTHON%/python.exe c:/ez_setup.py > NUL"
- "%PYTHON%/python.exe c:/get-pip.py"
- "%PYTHON%/Scripts/pip.exe install %LXML%"
- "%PYTHON%/Scripts/pip.exe install %PY2EXE%"
- "%PYTHON%/Scripts/pip.exe -q install -r %REQUIREMENTS%"
- "%PYTHON%/Scripts/pip.exe install ." # install jottalib
#- git clone https://github.com/havardgulldahl/jottalib
- set PYTHONPATH=%PYTHONPATH%;tests;%CD%\tests"
test_script:
- echo "PYTHONPATH=%PYTHONPATH%"
- "%PYTHON%/Scripts/py.test tests"