File tree 3 files changed +43
-4
lines changed
3 files changed +43
-4
lines changed Original file line number Diff line number Diff line change 6
6
7
7
environment :
8
8
matrix :
9
- - config : Dev
9
+ - config : MSYS2
10
10
autocrlf : true
11
11
- config : Dev
12
- autocrlf : false
12
+ autocrlf : true
13
13
- config : RelWithDebInfo
14
14
autocrlf : true
15
+ - config : Dev
16
+ autocrlf : false
15
17
- config : RelWithDebInfo
16
18
autocrlf : false
17
19
@@ -25,13 +27,26 @@ init:
25
27
- git config --global core.autocrlf %autocrlf%
26
28
- git config --get core.autocrlf
27
29
30
+ install :
31
+ - cd c:\projects
32
+ - git clone https://github.com/osmcode/osm-testdata
33
+ - if [%config%]==[MSYS2] (
34
+ C:\msys64\usr\bin\pacman --noconfirm --sync --refresh --refresh --sysupgrade --sysupgrade
35
+ && C:\msys64\usr\bin\pacman -Rc --noconfirm mingw-w64-x86_64-gcc-libs
36
+ )
37
+
28
38
# clone directory
29
39
clone_folder : c:\projects\libosmium
30
40
31
41
platform : x64
32
42
33
43
build_script :
34
- - build-appveyor.bat
44
+ - cd c:\projects\libosmium
45
+ - if [%config%]==[MSYS2] (
46
+ build-msys2.bat
47
+ ) else (
48
+ build-appveyor.bat
49
+ )
35
50
36
51
# remove garbage VS messages
37
52
# http://help.appveyor.com/discussions/problems/4569-the-target-_convertpdbfiles-listed-in-a-beforetargets-attribute-at-c-does-not-exist-in-the-project-and-will-be-ignored
Original file line number Diff line number Diff line change
1
+ echo " Adding MSYS2 to path..."
2
+ SET " PATH = C:\msys64\mingw64\bin;C:\msys64\usr\bin;%PATH% "
3
+ echo %PATH%
4
+
5
+ echo " Installing MSYS2 packages..."
6
+ bash -lc " pacman -S --needed --noconfirm mingw-w64-x86_64-gcc mingw-w64-x86_64-geos mingw-w64-x86_64-cmake mingw-w64-x86_64-boost mingw-w64-x86_64-cppcheck mingw-w64-x86_64-doxygen mingw-w64-x86_64-gdb mingw-w64-x86_64-sparsehash mingw-w64-x86_64-gdal mingw-w64-x86_64-ruby mingw-w64-x86_64-libspatialite mingw-w64-x86_64-spatialite-tools mingw-w64-x86_64-clang-tools-extra"
7
+ bash -lc " pacman -S --needed --noconfirm mingw-w64-x86_64-postgresql mingw-w64-x86_64-netcdf mingw-w64-x86_64-crypto++"
8
+ call C:\msys64\mingw64\bin\gem.cmd install json
9
+
10
+ echo " Setting PROJ_LIB variable for correct PROJ.4 working"
11
+ set PROJ_LIB = c:\msys64\mingw64\share\proj
12
+
13
+ echo " Generating makefiles"
14
+ mkdir build
15
+ cd build
16
+ cmake .. -G " MSYS Makefiles" -DBUILD_DATA_TESTS=ON -DBUILD_HEADERS=OFF
17
+
18
+ echo " Building"
19
+ make
20
+
21
+ echo " Testing"
22
+ ctest
Original file line number Diff line number Diff line change 1
1
2
2
#
3
+ # Version 0.31 2017-09-15
4
+ # - find gem executable gem.cmd on Windows
3
5
# Version 0.3 2013-07-02
4
6
# - rely on `gem content` to find library and header
5
7
# - introduce GEM_OS_PKG to allow search via pkgconfig
28
30
# Check for how 'gem' should be called
29
31
include (FindPackageHandleStandardArgs)
30
32
find_program (GEM_EXECUTABLE
31
- NAMES "gem${RUBY_VERSION_MAJOR}${RUBY_VERSION_MINOR} "
33
+ NAMES "gem.cmd" "gem ${RUBY_VERSION_MAJOR}${RUBY_VERSION_MINOR} "
32
34
"gem${RUBY_VERSION_MAJOR} .${RUBY_VERSION_MINOR} "
33
35
"gem-${RUBY_VERSION_MAJOR}${RUBY_VERSION_MINOR} "
34
36
"gem-${RUBY_VERSION_MAJOR} .${RUBY_VERSION_MINOR} "
You can’t perform that action at this time.
0 commit comments