-
Notifications
You must be signed in to change notification settings - Fork 16
/
.appveyor.yml
129 lines (97 loc) · 3.7 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
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
# version: 1.0.{build}
# Do not build on tags (GitHub, Bitbucket, GitLab, Gitea)
skip_tags: true
# Start builds on tags only (GitHub, BitBucket, GitLab, Gitea)
skip_non_tags: false
# Maximum number of concurrent jobs for the project
max_jobs: 1
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2015
# scripts that are called at very beginning, before repo cloning
init:
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platform%
- choco install make
# clone directory
clone_folder: c:\projects\cosmonium
# fetch repository as zip archive
shallow_clone: false
# scripts that run after cloning repository
install:
- cmd: |
git submodule sync --recursive
git submodule update --init --force --recursive
- ps: |
$wc = New-Object System.Net.WebClient
$wc.DownloadFile("https://github.com/cosmonium/panda3d/releases/download/cosmonium-v1.11.0.dev3368-gd9052bae76/Panda3D-1.11.0.dev3368-py3.9-x64.exe", "c:\projects\cosmonium\Panda3D-SDK-1.11.0-x64.exe")
c:\projects\cosmonium\Panda3D-SDK-1.11.0-x64.exe /S /D="C:\Panda3D-1.11.0-x64" | Out-Null
- ps: |
$wc = New-Object System.Net.WebClient
$wc.DownloadFile("https://www.panda3d.org/download/panda3d-1.10.14/panda3d-1.10.14-tools-win64.zip", "c:\projects\cosmonium\thirdparty-tools.zip")
Expand-Archive -Path c:\projects\cosmonium\thirdparty-tools.zip
Move-Item -Path c:\projects\cosmonium\thirdparty-tools/panda3d-1.10.14/thirdparty -Destination c:\Panda3D-1.11.0-x64\thirdparty
#---------------------------------#
# build configuration #
#---------------------------------#
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
platform: x64
environment:
PATH: 'C:\Python39-x64;%PATH%'
# scripts to run before build
before_build:
# to run your custom scripts instead of automatic MSBuild
build_script:
- cmd: |
make build
make bdist
# scripts to run after build (working directory and environment changes are persisted from the previous steps)
after_build:
#---------------------------------#
# tests configuration #
#---------------------------------#
# to run your custom scripts instead of automatic tests
test_script:
- ps: |
cd build/win_amd64
.\cosmonium.exe --test-start | Out-Null
cat c:/Users/appveyor/AppData/Local/Cosmonium/Logs/output.log
cp c:/Users/appveyor/AppData/Local/Cosmonium/Logs/output.log c:/projects/cosmonium/output.log
# scripts to run after tests
after_test:
# to disable automatic tests
#test: off
#---------------------------------#
# artifacts configuration #
#---------------------------------#
artifacts:
- path: output.log
- path: 'dist/*.exe'
#---------------------------------#
# deployment configuration #
#---------------------------------#
# providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
# provider names are case-sensitive!
deploy:
# Deploy to GitHub Releases
- provider: GitHub
artifact: /build\/.*\.exe/
draft: false
prerelease: false
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: true # deploy on tag push only
# scripts to run before deployment
before_deploy:
# scripts to run after deployment
after_deploy:
# to run your custom scripts instead of provider deployments
deploy_script:
#---------------------------------#
# global handlers #
#---------------------------------#