aboutsummaryrefslogtreecommitdiffstats
path: root/gulrak-filesystem/.appveyor.yml
blob: cf986f761b660e8de9a4903514c8254914b4043c (plain) (blame)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
environment:
  matrix:
    - platform: x86
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
      generator: "Visual Studio 14 2015"
      compiler: msvc
      configuration: Release

    - platform: x64
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
      generator: "Visual Studio 14 2015 Win64"
      compiler: msvc
      configuration: Release

    - platform: x86
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
      generator: "Visual Studio 15 2017"
      compiler: msvc
      configuration: Release

    - platform: x64
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
      generator: "Visual Studio 15 2017 Win64"
      compiler: msvc
      configuration: Release

    - platform: x86
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
      generator: "Visual Studio 16 2019"
      compiler: msvc19
      configuration: Release
      arch: Win32

    - platform: x64
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
      generator: "Visual Studio 16 2019"
      compiler: msvc19
      configuration: Release
      arch: x64

    - platform: x86
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
      generator: "MinGW Makefiles"
      compiler: mingw
      TOOLCHAIN_PATH: C:\mingw-w64\i686-6.3.0-posix-dwarf-rt_v5-rev1/mingw32\bin
      CC: C:/mingw-w64/i686-6.3.0-posix-dwarf-rt_v5-rev1/mingw32/bin/gcc.exe
      CXX: C:/mingw-w64/i686-6.3.0-posix-dwarf-rt_v5-rev1/mingw32/bin/g++.exe
      configuration: Release

    - platform: x64
      APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
      generator: "MinGW Makefiles"
      compiler: mingw
      TOOLCHAIN_PATH: C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin
      CC: C:/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/gcc.exe
      CXX: C:/mingw-w64/x86_64-7.2.0-posix-seh-rt_v5-rev1/mingw64/bin/g++.exe
      configuration: Release

matrix:
  fast_finish: false

init:
  - cmd: cmake --version
  - cmd: msbuild /version

install:
  - cmd: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock" /t REG_DWORD /f /v "AllowDevelopmentWithoutDevLicense" /d "1"
  - cmd: ren "C:\Program Files\Git\usr\bin\sh.exe" _sh.exe

build_script:
  - mkdir build
  - cd build
  - if [%compiler%]==[msvc] cmake -G"%generator%" ..
  - if [%compiler%]==[msvc19] cmake -G"%generator%" -A "%arch%" ..
  - if [%compiler%]==[mingw] set PATH=%TOOLCHAIN_PATH%;%PATH%
  - if [%compiler%]==[mingw] cmake -G"%generator%" -DCMAKE_C_COMPILER=%CC% -DCMAKE_CXX_COMPILER=%CXX% -DCMAKE_SH=CMAKE_SH-NOTFOUND -DCMAKE_BUILD_TYPE=%configuration% ..
  - cmake --build . --config %configuration%
  
test_script:
  - cd %APPVEYOR_BUILD_FOLDER%\build
  - set CTEST_OUTPUT_ON_FAILURE=1
  - ctest -C %configuration% 
  - if exist "test\Release\std_filesystem_test.exe" test\Release\std_filesystem_test.exe & exit 0
  - cd ..