appveyor.yml 1.17 KB
Newer Older
Gauthier Quesnel's avatar
Gauthier Quesnel committed
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
os: Visual Studio 2019
branches:
  only:
    - master
    - test
    - next

environment:
  matrix:
    - COMPILER: msvc
      GENERATOR: Visual Studio 16 2019
      PLATFORM: x64
      BUILD_TYPE: Debug

    - COMPILER: msvc
      GENERATOR: Visual Studio 16 2019
      PLATFORM: x64
      BUILD_TYPE: Release

install:
  - echo Installing %COMPILER% %PLATFORM% %BUILD_TYPE%
  - git submodule -q update --init --recursive
  - if defined BINDIR (set "PATH=%BINDIR%;%PATH%")

build_script:
  - md build
  - cd build
  - cmake -G "%GENERATOR%" -DCMAKE_BUILD_TYPE="%BUILD_TYPE%" -DCMAKE_SH=CMAKE_SH-NOTFOUND -DCMAKE_INSTALL_PREFIX=%APPVEYOR_BUILD_FOLDER%\irritator ..
  - if "%COMPILER%"=="msvc" cmake --build . --config "%BUILD_TYPE%"
  - if "%COMPILER%"=="msvc" cmake --build . --config "%BUILD_TYPE%" --target install
  - if not "%COMPILER%"=="msvc" cmake --build .
  - if not "%COMPILER%"=="msvc" cmake --build . --target install
  - ctest --output-on-failure --verbose -C "%BUILD_TYPE%"

after_build:
  - cmd: cd %APPVEYOR_BUILD_FOLDER%
  - cmd: 7z a irritator-%COMPILER%-%PLATFORM%-%BUILD_TYPE%.zip irritator

artifacts:
  - path: irritator-%COMPILER%-%PLATFORM%-%BUILD_TYPE%.zip
    name: app