-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathappveyor.yml
More file actions
72 lines (60 loc) · 2.36 KB
/
Copy pathappveyor.yml
File metadata and controls
72 lines (60 loc) · 2.36 KB
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
version: 0.0.{build}
os:
- Visual Studio 2017
environment:
my_secret:
secure: 1+nl/M+SEHCHODFx1uJfZA==
my_github_username:
secure: dVKOiMJnhBO0y+8aZxCYDg==
my_github_password:
secure: LcITt+0DCnllqTcdDo3Ee3yO+L0CWbGVNqwnfYgvQz3LPoQ3VZupN4rkvAQTrz8f
APPVEYOR_SAVE_CACHE_ON_ERROR: true
matrix:
- TOOLSET: vs2017
VS_PLATFORM_TOOLSET: v141
- TOOLSET: vs2015
VS_PLATFORM_TOOLSET: v140
configuration:
- debug-static
- release-static
- debug-shared
- release-shared
install:
- cmd: del /S /F /Q /A .\tools\bin\premake\finseccodelite
- cmd: rd /S /Q .\tools\bin\premake\finseccodelite
- cmd: git submodule update --init --recursive
- cmd: powershell -ExecutionPolicy Bypass -File .\build\win\deploy_tools.ps1
- cmd: powershell -ExecutionPolicy Bypass -File .\build\win\decrypt_configs.ps1
- cmd: build\win\genproj.cmd
before_build:
- cmd: msbuild generators.sln /t:Build /p:Configuration="%configuration%" /p:PlatformToolset=%VS_PLATFORM_TOOLSET% /p:Platform=Win64
build:
project: trader.sln
cache:
- packages -> premake5.lua, build\appveyor\cleanup_cache.txt
- tools -> build\win\deploy_tools.ps1, build\win\decrypt_configs.ps1, build\appveyor\cleanup_cache.txt
after_build:
7z a trader_%configuration%_%APPVEYOR_BUILD_VERSION%.zip %APPVEYOR_BUILD_FOLDER%\bin\Win64\%configuration%\*.exe %APPVEYOR_BUILD_FOLDER%\bin\Win64\%configuration%\*.dll %APPVEYOR_BUILD_FOLDER%\bin\Win64\*.properties %APPVEYOR_BUILD_FOLDER%\bin\Win64\*.json
artifacts:
- path: trader_%configuration%_%APPVEYOR_BUILD_VERSION%.zip
- path: bin
type: zip
deploy:
# Deploy to GitHub Releases
- provider: GitHub
artifact: /.*\.zip/ # upload all zip packages to release assets
draft: true
prerelease: true
on:
branch: master # release from master branch only
auth_token:
secure: cVIYLIIEjkS7RLb2rseOsIWW9ru4KNdKjA0bWfE6gVVsutQXo6uyodpau6al+YS+
# appveyor_repo_tag: true # deploy on tag push only
test_script:
#Just name test executables as *test.exe and it will be part of the test coverage
- cmd: powershell -ExecutionPolicy Bypass -File .\build\win\run_tests.ps1
after_test:
- ps: |
$env:PATH = 'C:\msys64\usr\bin;' + $env:PATH
Invoke-WebRequest -Uri 'https://codecov.io/bash' -OutFile codecov.sh
bash codecov.sh -f "code_coverage_report.xml" -t $env:my_code_cov_token