forked from Astron/Astron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
62 lines (59 loc) · 2.71 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
install:
# What is it with CMake and not detecting the right versions of libraries...
- del C:\OpenSSL-Win64\lib\ssleay32.lib
- del C:\OpenSSL-Win64\lib\libeay32.lib
- set BOOST_ROOT=C:\Libraries\boost_1_62_0
- set BOOST_LIBRARYDIR=%BOOST_ROOT%\lib64-msvc-14.0
# Various dependencies needed by Astron...
- cd dependencies
# build yaml-cpp
- appveyor DownloadFile https://github.com/jbeder/yaml-cpp/archive/yaml-cpp-0.5.3.zip -FileName yaml-cpp.zip
- 7z x yaml-cpp.zip
- ren yaml-cpp-yaml-cpp-0.5.3 yaml-cpp
- cd yaml-cpp
- cmake -G"Visual Studio 14 2015 Win64" -DYAML_CPP_BUILD_TOOLS=OFF .
- msbuild /p:Configuration=Release ALL_BUILD.vcxproj
- set CMAKE_LIBRARY_PATH=%CMAKE_LIBRARY_PATH%;%CD%\Release
- set CMAKE_INCLUDE_PATH=%CMAKE_INCLUDE_PATH%;%CD%
- cd ..
# build libbson
- appveyor DownloadFile https://github.com/mongodb/libbson/archive/1.9.3.zip -FileName libbson-1.9.3.zip
- 7z x libbson-1.9.3.zip
- cd libbson-1.9.3
- cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=C:\libraries\libbson -DENABLE_TESTS=OFF
- msbuild /p:Configuration=Release ALL_BUILD.vcxproj
- msbuild /p:Configuration=Release INSTALL.vcxproj
- cd ..
# build mongoc
- appveyor DownloadFile https://github.com/mongodb/mongo-c-driver/archive/1.9.3.zip -FileName mongo-c-driver-1.9.3.zip
- 7z x mongo-c-driver-1.9.3.zip
- cd mongo-c-driver-1.9.3
- cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=C:\libraries\mongoc -DENABLE_SSL=OFF -DENABLE_TESTS=OFF -DBSON_ROOT_DIR=C:\libraries\libbson
- msbuild /p:Configuration=Release ALL_BUILD.vcxproj
- msbuild /p:Configuration=Release INSTALL.vcxproj
- cd ..
# build mongo-cxx-driver
- git clone --branch releases/stable https://github.com/mongodb/mongo-cxx-driver
- cd mongo-cxx-driver\build
- cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=C:\libraries\mongo-cxx-driver -DCMAKE_PREFIX_PATH=C:\libraries\libbson;C:\libraries\mongoc -DLIBMONGOC_DIR=C:\libraries\mongoc ..
- msbuild /p:Configuration=Release ALL_BUILD.vcxproj
- msbuild /p:Configuration=Release INSTALL.vcxproj
- cd ..\..\..
- set CMAKE_PREFIX_PATH=%CMAKE_PREFIX_PATH%;C:\libraries\mongo-cxx-driver
build_script:
- cd build
- cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=C:\libraries\mongo-cxx-driver -DCMAKE_PREFIX_PATH=C:\libraries\libbson;C:\libraries\mongoc -DCMAKE_BUILD_TYPE=Release -DOPENSSL_USE_STATIC_LIBS=NO ..
- msbuild /p:Configuration=Release ALL_BUILD.vcxproj
- cd Release
- copy /Y C:\libraries\libbson\bin\*.dll .
- copy /Y C:\libraries\mongoc\bin\*.dll .
- copy /Y C:\libraries\mongo-cxx-driver\bin\*.dll .
- copy /Y C:\OpenSSL-Win64\*eay32.dll .
- 7z a astron.zip *
- cd ..
test_script:
- 7z x Release\astron.zip
- set PATH=%PATH%;C:\mongodb\bin
- ctest --output-on-failure
artifacts:
- path: build\Release\astron.zip