forked from microsoft/rDSN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
74 lines (49 loc) · 2.31 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
version: 1.0.{build}
environment:
DSN_VS: "Visual Studio 14 2015 Win64"
DSN_BOOST: boost_1_59_0
DSN_BOOST_LIB: lib64-msvc-14.0
DSN_BOOST_PKG: https://github.com/imzhenyu/packages/blob/master/windows/boost_1_59_0_vc14_amd64.7z?raw=true
DSN_THRIFT_EXE: https://github.com/imzhenyu/thrift/commits/master/pre-built/windows8.1/thrift.exe
DSN_CMAKE_BUILD_TYPE: Debug
install:
- ps: >-
git submodule update --init
if (!(Test-Path boost-1.59.7z)) {
echo "Downloading boost binaries from ${env:DSN_BOOST_PKG} ..."
appveyor DownloadFile "${env:DSN_BOOST_PKG}" -FileName boost-1.59.7z -Timeout 1200000
}
if (!(Test-Path thrift.exe)) {
echo "Downloading thrift.exe from ${env:DSN_THRIFT_EXE} ..."
appveyor DownloadFile "${env:DSN_THRIFT_EXE}" -FileName thrift.exe -Timeout 1200000
}
if (!(Test-Path php.exe)) {
echo "Downloading php ..."
appveyor DownloadFile "https://github.com/imzhenyu/packages/raw/master/windows/php5.dll?raw=true" -FileName php5.dll -Timeout 1200000
appveyor DownloadFile "https://github.com/imzhenyu/packages/raw/master/windows/php.exe?raw=true" -FileName php.exe -Timeout 1200000
appveyor DownloadFile "https://github.com/imzhenyu/packages/raw/master/windows/php.ini?raw=true" -FileName php.ini -Timeout 1200000
}
- cmd: >-
echo "Extracting boost libs to %APPVEYOR_BUILD_FOLDER% ..."
7z x boost-1.59.7z -y -o"%APPVEYOR_BUILD_FOLDER%" > null
copy /Y thrift.exe bin\Windows\
copy /Y php5.dll bin\Windows\
copy /Y php.exe bin\Windows\
copy /Y php.ini bin\Windows\
cache:
- boost-1.59.7z
- thrift.exe
before_build:
- cmd: >-
SET DSN_AUTO_TEST=1
run.cmd setup-env
mkdir build
cd .\build
cmake .. -DCMAKE_BUILD_TYPE="%DSN_CMAKE_BUILD_TYPE%" -DBOOST_INCLUDEDIR="%APPVEYOR_BUILD_FOLDER%\%DSN_BOOST%" -DBOOST_LIBRARYDIR="%APPVEYOR_BUILD_FOLDER%\%DSN_BOOST%\%DSN_BOOST_LIB%" -DDSN_GIT_SOURCE="github" -G "%DSN_VS%"
build_script:
- cmd: >-
msbuild dsn.sln /t:Rebuild /p:Configuration=Debug /m
test_script:
- cmd: >-
SET PATH=C:\tools\php\;%PATH%
..\run.cmd test Debug .\