Skip to content

Commit 90c3d99

Browse files
authored
Merge pull request #4 from LeetCode-OpenSource/windows-ci
try to add appveyor ci
2 parents f626f0e + 17b2456 commit 90c3d99

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

appveyor.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,50 @@ environment:
66
# The list here is complete (excluding Python 2.6, which
77
# isn't covered by this document) at the time of writing.
88
- PYTHON: "C:\\Python35"
9+
PYVERSION: 35
910
BITS: 32
11+
ARC: "win32"
1012
- PYTHON: "C:\\Python35-x64"
13+
PYVERSION: 35
1114
BITS: 64
15+
ARC: "win_amd64"
1216
- PYTHON: "C:\\Python36"
17+
PYVERSION: 36
1318
BITS: 32
19+
ARC: "win32"
1420
- PYTHON: "C:\\Python36-x64"
21+
PYVERSION: 36
1522
BITS: 64
23+
ARC: "win_amd64"
1624
- PYTHON: "C:\\Python37"
25+
PYVERSION: 37
1726
BITS: 32
27+
ARC: "win32"
1828
- PYTHON: "C:\\Python37-x64"
29+
PYVERSION: 37
1930
BITS: 64
31+
ARC: "win_amd64"
2032

2133
install:
2234
# We need wheel installed to build wheels
2335
- IF "%BITS%" == "32" SET ARCH=i686
2436
- IF "%BITS%" == "64" SET ARCH=x86_64
2537
- curl -sSf -o rustup-init.exe https://win.rustup.rs
2638
- rustup-init.exe --default-host "%ARCH%-pc-windows-gnu" --default-toolchain nightly -y
27-
- SET PATH=C:\Users\appveyor\.cargo\bin;C:\msys64\mingw%BITS%\bin;%PATH%;C:\msys64\usr\bin
39+
- SET PYTHONPATH=%PYTHON%;%PYTHON%\Scripts;
40+
- SET PATH=%PYTHON%;%PYTHON%\Scripts;%PYTHON%\Lib;%PYTHON%\DLLs;%PYTHON%\Lib\lib-tk;C:\Users\appveyor\.cargo\bin;C:\msys64\mingw%BITS%\bin;%PATH%;C:\msys64\usr\bin;
2841
- rustc -Vv
2942
- cargo -Vv
30-
- "%PYTHON%\\python.exe -m pip install wheel"
31-
- pip install -r requirement-dev.txt --user
43+
- python -V
44+
- ls %PYTHON%\Scripts
45+
- "%PYTHON%\\python.exe -m pip install --upgrade pip"
46+
- "%PYTHON%\\python.exe -m pip install wheel setuptools-rust"
47+
- "%PYTHON%\\python.exe -m pip install -r requirement-dev.txt"
3248

33-
build:
34-
- "build.cmd %PYTHON%\\python.exe compile.py build"
49+
build_script:
50+
- "%PYTHON%\\python.exe compile.py build"
51+
- ls build\lib\py_sourcemap
52+
- copy "build\\lib\\py_sourcemap\\py_sourcemap.cp%PYVERSION%-%ARC%.pyd" py_sourcemap\py_sourcemap.pyd
3553

3654
test_script:
3755
# Put your test command here.
@@ -41,15 +59,11 @@ test_script:
4159
# Note that you must use the environment variable %PYTHON% to refer to
4260
# the interpreter you're using - Appveyor does not do anything special
4361
# to put the Python version you want to use on PATH.
44-
- "build.cmd %PYTHON%\\python.exe setup.py test"
62+
- "%PYTHON%\\python.exe -m nose"
4563

4664
after_test:
4765
# This step builds your wheels.
4866
# Again, you only need build.cmd if you're building C extensions for
4967
# 64-bit Python 3.3/3.4. And you need to use %PYTHON% to get the correct
5068
# interpreter
51-
- "build.cmd %PYTHON%\\python.exe setup.py bdist_wheel"
52-
53-
artifacts:
54-
# bdist_wheel puts your built wheel in the dist directory
55-
- path: dist\*
69+
- "ls build\\lib\\py_sourcemap"

0 commit comments

Comments
 (0)