forked from spyoungtech/ahk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
48 lines (39 loc) · 1.18 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
version: '0.1.{build}'
environment:
AHK_PATH: C:\ahk\AutoHotkey.exe
AHK_DEBUG: true
install:
- ps: |
if (!(Test-Path ahk_install.exe)) {
echo "Downloading AHK installer"
appveyor DownloadFile https://github.com/Lexikos/AutoHotkey_L/releases/download/v1.1.30.01/AutoHotkey_1.1.30.01_setup.exe -FileName ahk_install.exe
} else {
echo "Using cached installer"
}
- ahk_install.exe /S /D=C:\ahk
- cmd: .\ci\install.bat
build_script:
- cmd: .\ci\build.bat
artifacts:
- name: dist
path: dist\*
test_script:
- powershell .\ci\runtests.ps1
on_finish:
- cmd: |
venv\Scripts\activate.bat
IF DEFINED COVERALLS_REPO_TOKEN (python -m coverage) ELSE (echo skipping coveralls report for external pr)
cache:
- ahk_install.exe -> appveyor.yml
deploy_script:
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq "true") {
py -3.7 -m venv deploy_venv
.\deploy_venv\Scripts\activate.ps1
python -m pip install --upgrade pip
pip install --upgrade wheel
pip install --upgrade twine
twine upload dist\*
} else {
echo "Skipping Deploy Because this is not a tagged commit"
}