File tree Expand file tree Collapse file tree 7 files changed +66
-5
lines changed Expand file tree Collapse file tree 7 files changed +66
-5
lines changed Original file line number Diff line number Diff line change
1
+ rem Ensure Cygwin executables like sh.exe are not in PATH
2
+ set PATH = C:\Windows\system32;C:\Windows;C:\mingw-w64\x86_64-4.9.1-posix-seh-rt_v3-rev1\mingw64\bin;C:\mongo-c-driver\bin
3
+
4
+ echo CONFIGURE_FLAGS %CONFIGURE_FLAGS%
5
+
6
+ set CMAKE = C:\cmake\bin\cmake
7
+ set CMAKE_MAKE_PROGRAM = C:\mingw-w64\x86_64-4.9.1-posix-seh-rt_v3-rev1\mingw64\bin\mingw32-make.exe
8
+ set CC = C:\mingw-w64\x86_64-4.9.1-posix-seh-rt_v3-rev1\mingw64\bin\gcc.exe
9
+
10
+ cd src\libbson
11
+ %CMAKE% -G " MinGW Makefiles" -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM% -DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver %CONFIGURE_FLAGS%
12
+
13
+ %CMAKE_MAKE_PROGRAM%
14
+ %CMAKE_MAKE_PROGRAM% install
15
+
16
+ cd ..\..
17
+ %CMAKE% -G " MinGW Makefiles" -DCMAKE_MAKE_PROGRAM=%CMAKE_MAKE_PROGRAM% -DBSON_ROOT_DIR=C:\mongo-c-driver -DCMAKE_INSTALL_PREFIX=C:\mongo-c-driver %CONFIGURE_FLAGS%
18
+
19
+ %CMAKE_MAKE_PROGRAM%
20
+ %CMAKE_MAKE_PROGRAM% install
21
+
22
+ set MONGOC_TEST_SKIP_LIVE = on
23
+ test-libmongoc.exe --no-fork -d -F test-results.json
Original file line number Diff line number Diff line change @@ -53,8 +53,15 @@ case "$SSL" in
53
53
esac
54
54
esac
55
55
56
- # Resolve the compiler name to correct MSBuild location
56
+ export CONFIGURE_FLAGS
57
+
57
58
case " $CC " in
59
+ mingw* )
60
+ git submodule update --init
61
+ cmd.exe /c .evergreen\\ compile-windows-mingw.bat
62
+ exit 0
63
+ ;;
64
+ # Resolve the compiler name to correct MSBuild location
58
65
" Visual Studio 10 2010" )
59
66
BUILD=" /cygdrive/c/Windows/Microsoft.NET/Framework/v4.0.30319/MSBuild.exe"
60
67
;;
Original file line number Diff line number Diff line change 2
2
set -o xtrace # Write all commands first to stderr
3
3
set -o errexit # Exit the script with error if any of the commands fail
4
4
5
-
6
5
OS=$( uname -s | tr ' [:upper:]' ' [:lower:]' )
7
6
8
7
case " $OS " in
@@ -18,4 +17,3 @@ case "$OS" in
18
17
fi
19
18
;;
20
19
esac
21
-
Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ functions:
232
232
working_dir : " mongoc"
233
233
script : |
234
234
set -o errexit
235
- AUTH=${AUTH} SSL=${SSL} URI=${URI} sh .evergreen/run-tests.sh
235
+ CC="${CC}" AUTH=${AUTH} SSL=${SSL} URI=${URI} sh .evergreen/run-tests.sh
236
236
237
237
" run auth tests " :
238
238
- command : shell.exec
@@ -6411,6 +6411,16 @@ buildvariants:
6411
6411
- " .2.6 .nossl .nosasl"
6412
6412
# There is no 2.4 build for Windows
6413
6413
6414
+ - name : mingw
6415
+ display_name : " MinGW-W64"
6416
+ expansions :
6417
+ CC : " mingw"
6418
+ run_on :
6419
+ - windows-64-vs2013-compile
6420
+ tasks :
6421
+ - " .debug-compile .nossl .nosasl"
6422
+ - " .latest .nossl .nosasl .server"
6423
+
6414
6424
- name : power8-rhel71
6415
6425
display_name : " *Power8 (ppc64le) (RHEL 7.1)"
6416
6426
expansions :
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ case "$OS" in
61
61
echo " { \" releases\" : { \" default\" : \" c:\\\\ mongodb\\\\ bin\" }}" > orchestration.config
62
62
63
63
# Crazy python stuff to make sure MO is running latest version
64
- python -m virtualenv venv
64
+ python.exe -m virtualenv venv
65
65
cd venv
66
66
. Scripts/activate
67
67
git clone https://github.com/10gen/mongo-orchestration.git
Original file line number Diff line number Diff line change
1
+ set PATH = C:\Windows\system32;C:\Windows;C:\mingw-w64\x86_64-4.9.1-posix-seh-rt_v3-rev1\mingw64\bin;C:\mongo-c-driver\bin
2
+
3
+ rem "make install" would work, except we run tests on different Evergreen hosts,
4
+ rem in different working directories, than where the driver was built. This
5
+ rem causes errors in "make install" like:
6
+ rem CMake Error at cmake_install cannot find
7
+ rem "C:/data/mci/d3ba3391950aca9119e841818a8884bc/mongoc/src/libbson/libbson-1.0.dll"
8
+ rem
9
+ rem So just copy files manually
10
+
11
+ rmdir /Q /S C:\mongo-c-driver
12
+ md C:\mongo-c-driver
13
+ md C:\mongo-c-driver\bin
14
+ copy /Y libmongoc-1.0.dll C:\mongo-c-driver\bin
15
+ copy /Y src\libbson\libbson-1.0.dll C:\mongo-c-driver\bin
16
+
17
+ test-libmongoc.exe --no-fork -d -F test-results.json
Original file line number Diff line number Diff line change @@ -26,6 +26,12 @@ export MONGOC_TEST_FUTURE_TIMEOUT_MS=30000
26
26
export MONGOC_TEST_URI=" $URI "
27
27
export MONGOC_TEST_SERVER_LOG=" json"
28
28
29
+ if [ " $CC " = " mingw" ]; then
30
+ chmod +x test-libmongoc.exe
31
+ cmd.exe /c .evergreen\\ run-tests-mingw.bat
32
+ exit 0
33
+ fi
34
+
29
35
case " $OS " in
30
36
cygwin* )
31
37
export PATH=$PATH :` pwd` /tests:` pwd` /Debug:` pwd` /src/libbson/Debug
You can’t perform that action at this time.
0 commit comments