-
Notifications
You must be signed in to change notification settings - Fork 144
/
appveyor.yml
58 lines (52 loc) · 1.66 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
version: "{build}"
init:
- git config --global core.autocrlf input
environment:
matrix:
- QT6: /Users/appveyor/Qt/6.0.0/clang_64
APPVEYOR_BUILD_WORKER_IMAGE: macos
- QT6: /home/appveyor/Qt/6.0.0/gcc_64
APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
- QT6: C:\Qt\6.0.1\mingw81_64
MINGW: C:\Qt\Tools\mingw810_64
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
matrix:
fast_finish: false
for:
- matrix:
only:
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004
- APPVEYOR_BUILD_WORKER_IMAGE: macos
build_script:
- echo $APPVEYOR_BUILD_WORKER_IMAGE build script
- "echo Shell: $SHELL"
- "echo Home: $HOME"
- export PATH=$QT6/bin:$PATH
- export CMAKE_PREFIX_PATH=$QT6
- ls -lah $QT6
- ls -lah $QT6/bin
- mkdir build
- cd build
- cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release --build ..
- make
- cd tests
- ./qtcsv_tests
- matrix:
only:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
build_script:
- ps: echo Windows build script
- ps: echo $env:PATH
- ps: (dir env:)
- ps: $env:PATH="$env:MINGW\bin;$env:QT6\bin;$env:PATH"
- ps: $env:QT_LOGGING_RULES="*.debug=true"
- ps: mkdir build
- ps: cd build
# build library and tests
- ps: cmake --version
# IGNORE_PATH is a workaround for CMake not wanting sh.exe on PATH for MinGW
- ps: cmake -G "MinGW Makefiles" -DCMAKE_IGNORE_PATH="C:/Program Files/Git/usr/bin" -DCMAKE_BUILD_TYPE=Release ..
- ps: ls -s
- ps: mingw32-make
- ps: cd tests
- ps: bash.exe -c "cp ../libqtcsv.dll .; ./qtcsv_tests.exe"