-
Notifications
You must be signed in to change notification settings - Fork 3
/
appveyor.ym_
65 lines (48 loc) · 1.27 KB
/
appveyor.ym_
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
branches:
only:
- master
- /v\d+\.\d+\.\d+(-\d+)?/
clone_folder: c:\project\kindleimport
image:
- Visual Studio 2017
configuration: Release
platform: x64
init:
# Configure the AppVeyor build version to ${branch-name}-${git-revision}-${timestamp}
- ps: $commit = $env:appveyor_repo_commit.SubString(0,7)
- ps: $timestamp = $env:appveyor_repo_commit_timestamp.SubString(0,10)
- ps: Update-AppveyorBuild -Version ("{0}-{1}-{2}" -f $env:appveyor_repo_branch, $commit, $timestamp)
environment:
global:
PYTHON: C:\Python37-x64
QT: C:\Qt\5.13\msvc2017_64
before_build:
- cmd: |-
set PATH=%PYTHON%;%PYTHON%\Scripts;%PATH%
python -m pip install --upgrade pip
pip3.7 install flake8
build_script:
- cmd: |-
set PATH=%PYTHON%;%QT%\bin;%PATH%
cd setup_tools
python getkucore.py
cd ../
python buildplugin
test_script:
- cmd: |-
flake8 buildplugin
flake8 .
artifacts:
- path: '*.zip'
name: plugin
deploy:
- provider: GitHub
auth_token:
secure: QM747yzK0qkUTP1k/zQXGbxvvWK97YQpC5+6oAX6FTCPI+jYlB2zf4mzdcFj/uPL
release: KindleImport $(APPVEYOR_REPO_BRANCH)
tag: $(APPVEYOR_REPO_BRANCH)
description: '[Replace this text]'
artifact: plugin
draft: true
on:
branch: /v\d+\.\d+\.\d+(-\d+)?/