-
Notifications
You must be signed in to change notification settings - Fork 5
/
appveyor.yml
71 lines (60 loc) · 1.94 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
# Operating system (build VM template)
os: Visual Studio 2017
# clone directory
clone_folder: c:\projects\gsage
platform: x64
configuration: Release
install:
- set PATH=%PATH%;%PYTHON%/Scripts/
- pip.exe install conan_package_tools==0.19.8 # It will install Conan too
- conan remote add gsage https://api.bintray.com/conan/gsage/main --insert && conan user -p 3d14168da7de2092522ed90f72e9b6bf20db89e5 -r gsage gsage-ci
# scripts to run before build
before_build:
- conan install -s compiler.runtime=MD -g cmake -o gsage:with_ogre=2.1.0 -o gsage:with_librocket=True -o with_lua_version=luajit-2.0.5 --build=outdated .
- conan upload "*" --all -r gsage -c
build_script:
- conan build .
- cd build && cmake ..
- |
cd c:\projects\gsage\build\sdk
packager.exe resources\editorConfig.json
cd ..\
cpack .
# scripts to run after build
test_script:
- |
set OGRE_ENABLED=0
cd c:\projects\gsage\build\bin
packager.exe ../../resources/testConfig.json
unit-tests.exe --gtest_output=xml:unit.xml
functional-tests.exe -o junit --exclude-tags benchmark --no-auto-insulate -Xoutput functional.xml
# scripts to run after build
after_build:
- cd c:\projects\gsage\build
- 7z a c:\projects\gsage.zip * -tzip
- cd c:\projects\gsage
artifacts:
- path: 'build/*.msi'
name: gsage.msi
- path: build/bin/test.log
name: test.log
after_test:
- ps: |
$wc = New-Object 'System.Net.WebClient'
Get-ChildItem . -Name -Recurse '.\*.xml' |
Foreach-Object {
$wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path $_))
}
deploy:
appveyor_repo_tag: true
release: $(APPVEYOR_REPO_TAG_NAME)
tag: $(APPVEYOR_REPO_TAG_NAME)
description: 'Binaries'
provider: GitHub
auth_token:
secure: WGF5Rq6J6dwuSQ99+Kr/ZFMquK5SOAdJw3xWUxfAe2pHsyKy9p2JFdIsI0gBH/ID
artifact: /.*\.msi/
draft: false
prerelease: false
on:
APPVEYOR_REPO_TAG: true