forked from Codaone/DEXBot
-
Notifications
You must be signed in to change notification settings - Fork 4
/
appveyor.yml
78 lines (64 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
version: 0.1.{build}
image: Visual Studio 2015
environment:
matrix:
# Python 3.6.6 - 64-bit
- PYTHON: "C:\\Python36-x64"
#---------------------------------#
# Build #
#---------------------------------#
install:
- ps: Start-FileDownload 'https://www.python.org/ftp/python/3.6.8/python-3.6.8-amd64.exe'
- copy python-3.6.8-amd64.exe installer\windows\bundle\prerequisites\python-3.6.8.exe
- SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%;C:\MinGW\bin
- copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe
- copy c:\Python36-x64\python.exe c:\Python36-x64\python3.exe
- python --version
- python3 -m pip install --upgrade pip
- make install
- make package
- copy /Y dist\DEXBot-gui.exe installer\windows\msi\DEXBot.exe
# Read dexbot version from __init__.py
- ps: Get-Content dexbot\__init__.py | Foreach-Object { $var = $_.Split('='); if($var[0].Trim() -eq 'VERSION') { $env:VERSION = $var[1].Trim(); }}
# Set to version and replace ' with empty character
- set ApplicationVersion=%VERSION:'=%
- '7z a DEXBot-gui-win64-%ApplicationVersion%.zip %APPVEYOR_BUILD_FOLDER%\dist\DEXBot-gui.exe'
# Visual studio configuration
configuration:
- Release
platform: x86
build:
verbosity: normal
after_build:
- ps: Rename-Item -Path ".\installer\windows\bundle\bin\$env:CONFIGURATION\DEXBot-installer.exe" -NewName "DEXBot-installer-$env:ApplicationVersion.exe"
# @TODO: Run tests..
test_script:
- "echo tests..."
# Artifacts as relative path to the build folder C:\projects\dexbot
artifacts:
- path: DEXBot-gui-win64-%ApplicationVersion%.zip
name: DEXBot-gui-win64-%ApplicationVersion%.zip
- path: installer\windows\bundle\bin\%CONFIGURATION%\DEXBot-installer-%ApplicationVersion%.exe
name: DEXBot-installer-%ApplicationVersion%.exe
#---------------------------------#
# Deployment #
#---------------------------------#
shallow_clone: false
clone_depth: 1
deploy:
- provider: GitHub
draft: true
prerelease: false
force_update: true
auth_token:
secure: FclZCFdQUXRI1M8zSdKMTaKd45ZsQ8J4NhpYmMGOBG6kZ14init5b1WmyRajBuFD
on:
appveyor_repo_tag: true # Deploy on tag push only
#---------------------------------#
# Notifications #
#---------------------------------#
#notifications:
# - provider: Slack
# auth_token:
# secure: G9OMj9l2s3+lX8cRiNXXhuQJpnnjcBc0cqP8gzkdKVWqGA8vBTOIPGxD/536VKpeBH/5dJFQWT+vmnGS+XciaCg4hh5s6hDpnvePq2+uEYE=
# channel: '#ci'