Skip to content

Commit b00c040

Browse files
committed
Merge branch 'prerelease-v1.3'
2 parents e362d8e + 650cc2f commit b00c040

File tree

1 file changed

+192
-0
lines changed

1 file changed

+192
-0
lines changed

appveyor.yml

Lines changed: 192 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,192 @@
1+
# Notes:
2+
# - Minimal appveyor.yml file is an empty file. All sections are optional.
3+
# - Indent each level of configuration with 2 spaces. Do not use tabs!
4+
# - All section names are case-sensitive.
5+
# - Section names should be unique on each level.
6+
7+
#---------------------------------#
8+
# general configuration #
9+
#---------------------------------#
10+
11+
# version format
12+
version: 1.3.{build}
13+
14+
# you can use {branch} name in version format too
15+
# version: 1.0.{build}-{branch}
16+
17+
#---------------------------------#
18+
# environment configuration #
19+
#---------------------------------#
20+
21+
# Build worker image (VM template)
22+
image: Visual Studio 2015
23+
24+
# scripts that are called at very beginning, before repo cloning
25+
init:
26+
- git config --global core.autocrlf true
27+
28+
# fetch repository as zip archive
29+
shallow_clone: true # default is "false"
30+
31+
# clone directory
32+
clone_folder: c:\projects\bin2cpp
33+
34+
# environment variables
35+
environment:
36+
GTEST_DEBUG_LIBRARIES: gtest.lib
37+
GTEST_RELEASE_LIBRARIES: gtest.lib
38+
GTEST_INCLUDE: c:\projects\third_party\googletest\include
39+
GTEST_LIBRARY_DIR: c:\projects\third_party\googletest\msvc2010
40+
41+
# scripts that run after cloning repository
42+
install:
43+
- cmd: >-
44+
@echo off
45+
46+
REM ======================================================================
47+
48+
REM Cloning google test repository
49+
50+
REM =======================================================================
51+
52+
git clone https://github.com/google/googletest.git c:\projects\third_party\googletest
53+
54+
cd /d c:\projects\third_party\googletest
55+
56+
git checkout release-1.6.0
57+
58+
REM =======================================================================
59+
60+
REM Generating google test Visual Studio 2010 solution
61+
62+
REM =======================================================================
63+
64+
mkdir msvc2010
65+
66+
cd msvc2010
67+
68+
cmake -G "Visual Studio 10 2010" -Dgtest_force_shared_crt=ON -DCMAKE_CXX_FLAGS_DEBUG=/MDd -DCMAKE_CXX_FLAGS_RELEASE=/MD "c:\projects\third_party\googletest"
69+
70+
cd..
71+
72+
REM =======================================================================
73+
74+
REM Displaying Environnment Variables
75+
76+
REM =======================================================================
77+
78+
set
79+
80+
REM =======================================================================
81+
82+
REM Building google test library
83+
84+
REM =======================================================================
85+
86+
msbuild "msvc2010\gtest.sln" /m /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
87+
88+
REM =======================================================================
89+
90+
REM Done
91+
92+
REM =======================================================================
93+
94+
#---------------------------------#
95+
# build configuration #
96+
#---------------------------------#
97+
98+
# build platform, i.e. x86, x64, Any CPU. This setting is optional.
99+
#platform: x86
100+
101+
# build Configuration, i.e. Debug, Release, etc.
102+
configuration: Release
103+
104+
# to add several configurations to build matrix:
105+
#configuration:
106+
# - Debug
107+
# - Release
108+
109+
build:
110+
project: msvc\bin2cpp.sln
111+
verbosity: minimal
112+
113+
#---------------------------------#
114+
# tests configuration #
115+
#---------------------------------#
116+
117+
# to run your custom scripts instead of automatic tests
118+
test_script:
119+
- cmd: >-
120+
REM ======================================================================
121+
122+
REM Running unit tests
123+
124+
REM =======================================================================
125+
126+
cd /d c:\projects\bin2cpp\msvc
127+
128+
set path=%PATH%;c:\projects\bin2cpp\msvc\Win32\Release
129+
130+
bin2cpp_unittest.exe --gtest_filter=-TestExtraction.testRandom100000
131+
132+
REM ======================================================================
133+
134+
REM Uploading test results to AppVeyor
135+
136+
REM =======================================================================
137+
138+
set TEST_RESULT_URL=https://ci.appveyor.com/api/testresults/junit/%APPVEYOR_JOB_ID%
139+
140+
set TEST_RESULT_FILE=%CD%\bin2cppTest.x86.release.xml
141+
142+
echo TEST_RESULT_URL=%TEST_RESULT_URL%
143+
144+
echo TEST_RESULT_FILE=%TEST_RESULT_FILE%
145+
146+
powershell "(New-Object 'System.Net.WebClient').UploadFile($($env:TEST_RESULT_URL), $($env:TEST_RESULT_FILE))"
147+
148+
#---------------------------------#
149+
# artifacts configuration #
150+
#---------------------------------#
151+
152+
artifacts:
153+
- path: msvc\bin2cppTest.x86.release.xml
154+
name: bin2cppTest.x86.release.xml
155+
- path: nsis\bin\*.zip
156+
name: bin2cpp win32 portable
157+
- path: nsis\bin\*.exe
158+
name: bin2cpp win32 setup
159+
160+
#---------------------------------#
161+
# deployment configuration #
162+
#---------------------------------#
163+
164+
# # providers: Local, FTP, WebDeploy, AzureCS, AzureBlob, S3, NuGet, Environment
165+
# # provider names are case-sensitive!
166+
# deploy:
167+
#
168+
# # Deploy to GitHub Releases
169+
# - provider: GitHub
170+
# tag: v$(APPVEYOR_BUILD_VERSION)-win32
171+
# release: bin2cpp-v$(APPVEYOR_BUILD_VERSION)-win32
172+
# description: Latest successful AppVeyor CI builds of branch '$(APPVEYOR_REPO_BRANCH)'
173+
# auth_token:
174+
# secure: BgyLisMc154qWpkyBdh8OD+D9HMM+YnBkh7H4MEUShKO3aCU+Fn/XVGJ07fTsRmH
175+
# artifact: /(.*\.zip|.*\.exe)/
176+
# draft: true
177+
# prerelease: true
178+
# force_update: true
179+
180+
#---------------------------------#
181+
# notifications #
182+
#---------------------------------#
183+
184+
notifications:
185+
- provider: Email
186+
to:
187+
188+
subject: 'Build {{status}}' # optional
189+
message: "{{message}}, {{commitId}}, ..." # optional
190+
on_build_success: true
191+
on_build_failure: true
192+
on_build_status_changed: true

0 commit comments

Comments
 (0)