Skip to content

Commit 8d04449

Browse files
committed
Build and test both MinGW/msys2 and Cygwin64
1 parent 406119c commit 8d04449

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

mingw.yml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
init:
22
- echo %PYTHON%
33

4-
environment:
5-
PYTHON: "C:/Python37-x64"
6-
7-
matrix:
4+
matrix:
85
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
96
INTEGRATION_TESTS: 1
107
ARCHITECTURE: x86_64
@@ -17,7 +14,7 @@ shallow_clone: true
1714
install:
1815
- echo %APPVEYOR_BUILD_FOLDER%
1916
- set "PATH=c:\msys64\mingw64\bin;c:\msys64\usr\bin;c:\msys64\usr\local\bin;"
20-
- echo C:\msys64\usr\bin\bash -c "python -m pip install --upgrade pip;pip3.exe install lxml ; for i in base-devel git coreutils dos2unix tar diffutils make \
17+
- C:\msys64\usr\bin\bash -c "python -m pip install --upgrade pip;pip3.exe install lxml ; for i in base-devel git coreutils dos2unix tar diffutils make \
2118
mingw-w64-x86_64-toolchain mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb \
2219
mingw-w64-x86_64-cmake mingw-w64-x86_64-gettext mingw-w64-x86_64-python3 \
2320
mingw-w64-x86_64-libexpat mingw-w64-x86_64-libiconv mingw-w64-x86_64-zlib \
@@ -29,22 +26,23 @@ install:
2926
- C:\cygwin64\bin\bash -c "/usr/bin/python3.8.exe -m pip install --upgrade pip"
3027

3128
build_script:
32-
- cmd: rem set CMD=mkdir -p build
33-
- cmd: rem set CMD=%CMD%; cd build
34-
- cmd: rem set CMD=%CMD%; cmake .. -G 'Unix Makefiles' -DCMAKE_CXX_STANDARD=98 -DCMAKE_CXX_FLAGS=-Wno-deprecated
35-
- cmd: rem set CMD=%CMD%; cmake --build . --config Release
29+
- cmd: set CMD=mkdir -p build
30+
- cmd: set CMD=%CMD%; cd build
31+
- cmd: set CMD=%CMD%; cmake .. -G 'Unix Makefiles' -DCMAKE_CXX_STANDARD=98 -DCMAKE_CXX_FLAGS=-Wno-deprecated
32+
- cmd: set CMD=%CMD%; cmake --build . --config Release
3633
- cmd: rem echo %CMD%
3734
- cd %APPVEYOR_BUILD_FOLDER%
38-
- cmd: rem C:\msys64\usr\bin\bash -c "%CMD%"
39-
- cmd: rem set CMD=which python3 python
40-
- cmd: rem set CMD=%CMD%; python --version
41-
- cmd: rem set CMD=%CMD%; build/bin/exiv2 --verbose --version; pwd ; ls -l
42-
- cmd: rem set CMD=%CMD%; cd build ; cmake --build . --config Release --target python_tests
43-
- cmd: rem echo %CMD%
35+
- cmd: C:\msys64\usr\bin\bash -c "%CMD%"
36+
- cmd: set CMD=which python3 python
37+
- cmd: set CMD=%CMD%; python --version
38+
- cmd: set CMD=%CMD%; build/bin/exiv2 --verbose --version; pwd ; ls -l
39+
- cmd: set CMD=%CMD%; cd build ; cmake --build . --config Release --target python_tests
40+
- cmd: echo %CMD%
4441
- cd %APPVEYOR_BUILD_FOLDER%
4542
- cmd: C:\msys64\usr\bin\bash -c "%CMD%"
4643
- cmd: set "PATH=c:\cygwin64\usr\local\bin;c:\cygwin64\bin;c:\cygwin64\usr\bin;c:\cygwin64\usr\sbin;"
47-
- cmd: set CMD=mkdir -p build
44+
- cmd: set CMD=rm -rf build
45+
- cmd: set CMD=%CMD%; mkdir -p build
4846
- cmd: set CMD=%CMD%; cd build
4947
- cmd: set CMD=%CMD%;cmake .. -DCMAKE_CXX_STANDARD=98 -DCMAKE_CXX_FLAGS=-Wno-deprecated
5048
- cmd: set CMD=%CMD%; make

0 commit comments

Comments
 (0)