forked from h2oai/datatable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
109 lines (54 loc) · 2.46 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
version: 0.10.{build}
image: Visual Studio 2019
branches:
only:
- master
pull_requests:
do_not_increment_build_number: true
artifacts:
- path: dist\*.whl
build_script:
- cmd: >-
rem Set up DT_* environment variables
rem =======================================================================
FOR /f %%i in ('git rev-list --count master') DO SET MASTER_BUILD_ID=%%i
rem AppVeyor does an additional merge commit, that we don't need to take into account
FOR /f %%i in ('git rev-list --count master..') DO SET /a "BRANCH_BUILD_ID=%%i-1"
if defined APPVEYOR_PULL_REQUEST_NUMBER (SET DT_BUILD_SUFFIX=PR%APPVEYOR_PULL_REQUEST_NUMBER%.%BRANCH_BUILD_ID%)
else if "%APPVEYOR_REPO_BRANCH%"=="master" (SET DT_BUILD_NUMBER=%MASTER_BUILD_ID%)
else if "%APPVEYOR_REPO_BRANCH:~0,4%"=="rel-" (SET DT_RELEASE=True)
else (SET DT_BUILD_SUFFIX=%APPVEYOR_REPO_BRANCH%.%BRANCH_BUILD_ID%)
SET DT_HARNESS = AppVeyor
echo MASTER_BUILD_ID = %MASTER_BUILD_ID%
echo BRANCH_BUILD_ID = %BRANCH_BUILD_ID%
echo DT_RELEASE = %DT_RELEASE%
echo DT_BUILD_NUMBER = %DT_BUILD_NUMBER%
echo DT_BUILD_SUFFIX = %DT_BUILD_SUFFIX%
rem Python 3.5
rem =======================================================================
SET PATH=C:\Python35-x64;C:\Python35-x64\Scripts;%PATH%
python ci\ext.py wheel
FOR %%i in (dist\*-cp35-*.whl) DO pip install %%i
pip install pytest docutils pandas
pytest .\tests\
rem Python 3.6
rem =======================================================================
SET PATH=C:\Python36-x64;C:\Python36-x64\Scripts;%PATH%
python ci\ext.py wheel
FOR %%i in (dist\*-cp36-*.whl) DO pip install %%i
pip install pytest docutils pandas
pytest .\tests\
rem Python 3.7
rem =======================================================================
SET PATH=C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%
python ci\ext.py wheel
FOR %%i in (dist\*-cp37-*.whl) DO pip install %%i
pip install pytest docutils pandas
pytest .\tests\
rem Python 3.8
rem =======================================================================
SET PATH=C:\Python38-x64;C:\Python38-x64\Scripts;%PATH%
python ci\ext.py wheel
FOR %%i in (dist\*-cp38-*.whl) DO pip install %%i
pip install pytest docutils pandas
pytest .\tests\