forked from h2oai/datatable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
140 lines (78 loc) · 3.81 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
image: Visual Studio 2019
init:
# Uncomment the line below to enable RDP access
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
branches:
only:
- main
- /^rel\-*/
pull_requests:
do_not_increment_build_number: true
artifacts:
- path: dist\*.whl
build_script:
- ps: >-
# Set up required variables
# =======================================================================
$env:DT_HARNESS = "AppVeyor"
$DEFAULT_PATH = $env:PATH
$MAIN_BUILD_ID = git rev-list --count main
# Do not take into account the AppVeyor's additional merge commit
$BRANCH_BUILD_ID = (git rev-list --count main) - 1
if ($env:APPVEYOR_PULL_REQUEST_NUMBER -ne $null) {
if ($env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH -match "^rel\-") {
$env:DT_RELEASE = "True"
} else {
$env:DT_BUILD_SUFFIX = "PR$env:APPVEYOR_PULL_REQUEST_NUMBER.$BRANCH_BUILD_ID"
}
}
elseif ($env:APPVEYOR_REPO_BRANCH -eq "main") {
$env:DT_BUILD_NUMBER = $MAIN_BUILD_ID
}
elseif ($env:APPVEYOR_REPO_BRANCH -match "^rel\-") {
$env:DT_RELEASE = "True"
}
else {
$env:DT_BUILD_SUFFIX = "$env:APPVEYOR_REPO_BRANCH.$BRANCH_BUILD_ID"
}
# Print out variable's content
# =======================================================================
echo "DEFAULT_PATH = $DEFAULT_PATH"
echo "APPVEYOR_REPO_BRANCH = $env:APPVEYOR_REPO_BRANCH"
echo "APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH = $env:APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH"
echo "APPVEYOR_PULL_REQUEST_NUMBER = $env:APPVEYOR_PULL_REQUEST_NUMBER"
echo "MAIN_BUILD_ID = $MAIN_BUILD_ID"
echo "BRANCH_BUILD_ID = $BRANCH_BUILD_ID"
echo "DT_RELEASE = $env:DT_RELEASE"
echo "DT_BUILD_NUMBER = $env:DT_BUILD_NUMBER"
echo "DT_BUILD_SUFFIX = $env:DT_BUILD_SUFFIX"
# Build and test wheel for Python 3.6
# =======================================================================
$env:PATH = "C:\Python36-x64;C:\Python36-x64\Scripts;$DEFAULT_PATH"
python ci\ext.py wheel
$datatable_wheel = ls dist\*-cp36-*.whl
echo "----- build_info 3.6 ---------------------------------------------"
cat src/datatable/_build_info.py
echo "------------------------------------------------------------------"
pip --disable-pip-version-check install $datatable_wheel pytest docutils pandas
pytest -ra --maxfail=10 -Werror -vv --showlocals .\tests\
# Build and test wheel for Python 3.7
# =======================================================================
$env:PATH = "C:\Python37-x64;C:\Python37-x64\Scripts;$DEFAULT_PATH"
python ci\ext.py wheel
$datatable_wheel = ls dist\*-cp37-*.whl
echo "----- build_info 3.7 ---------------------------------------------"
cat src/datatable/_build_info.py
echo "------------------------------------------------------------------"
pip --disable-pip-version-check install $datatable_wheel pytest docutils pandas
pytest -ra --maxfail=10 -Werror -vv --showlocals .\tests\
# Build and test wheel for Python 3.8
# =======================================================================
$env:PATH = "C:\Python38-x64;C:\Python38-x64\Scripts;$DEFAULT_PATH"
python ci\ext.py wheel
$datatable_wheel = ls dist\*-cp38-*.whl
echo "----- build_info 3.8 ---------------------------------------------"
cat src/datatable/_build_info.py
echo "------------------------------------------------------------------"
pip --disable-pip-version-check install $datatable_wheel pytest docutils pandas
pytest -ra --maxfail=10 -Werror -vv --showlocals .\tests\