forked from Astron/Astron
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.appveyor.yml
60 lines (57 loc) · 2.56 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
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.6.2.zip -FileName yaml-cpp.zip
- 7z x yaml-cpp.zip
- ren yaml-cpp-yaml-cpp-0.6.2 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 mongoc
- appveyor DownloadFile https://github.com/mongodb/mongo-c-driver/archive/1.13.0.zip -FileName mongo-c-driver.zip
- 7z x mongo-c-driver.zip
- cd mongo-c-driver-1.13.0
- cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=C:\libraries\mongoc -DENABLE_SSL=OFF -DENABLE_TESTS=OFF
- msbuild /p:Configuration=Release ALL_BUILD.vcxproj
- msbuild /p:Configuration=Release INSTALL.vcxproj
- cd ..
# build mongo-cxx-driver
- appveyor DownloadFile https://github.com/mongodb/mongo-cxx-driver/archive/r3.4.0.zip -FileName mongo-cxx-driver.zip
- 7z x mongo-cxx-driver.zip
- cd mongo-cxx-driver-r3.4.0\build
- cmake -G"Visual Studio 14 2015 Win64" -DCMAKE_INSTALL_PREFIX=C:\libraries\mongo-cxx-driver -DCMAKE_PREFIX_PATH=C:\libraries\mongoc -DLIBMONGOC_DIR=C:\libraries\mongoc ..
- msbuild /p:Configuration=Release ALL_BUILD.vcxproj
- msbuild /p:Configuration=Release INSTALL.vcxproj
- cd ..\..\
# build libuv
- appveyor DownloadFile https://github.com/libuv/libuv/archive/v1.24.0.zip -FileName libuv.zip
- 7z x libuv.zip
- cd libuv-1.24.0
- vcbuild release shared x64
- 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\mongoc;C:\projects\astron\dependencies\libuv-1.24.0;C:\projects\astron\dependencies\libuv-1.24.0\Release -DCMAKE_BUILD_TYPE=Release ..
- msbuild /p:Configuration=Release ALL_BUILD.vcxproj
- cd Release
- copy /Y C:\projects\astron\dependencies\libuv-1.24.0\Release\*.dll .
- copy /Y C:\libraries\mongoc\bin\*.dll .
- copy /Y C:\libraries\mongo-cxx-driver\bin\*.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