File: .appveyor.yml

package info (click to toggle)
flightcrew 0.9.3+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 6,748 kB
  • sloc: cpp: 53,736; xml: 2,006; ansic: 275; python: 215; sh: 112; makefile: 8; exp: 8
file content (80 lines) | stat: -rw-r--r-- 2,013 bytes parent folder | download
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
version: '0.9.3-{build}'

branches:
  only:
  - master
  - /\d+\.\d+\.\d+(-\d+)?/

clone_depth: 5

image:
  - Visual Studio 2015
  - Ubuntu

configuration:
  - Release

platform:
  - x86
  - x64

only_commits:
  files:
    - CMakeLists.txt
    - appveyor.yml
    - src/
    - cmake_extras/
    - appveyor_scripts/

environment:
  global:
    MSYS_DIR: c:\msys64
  matrix:
    - MSYS_ARCH: i686
      MSYSTEM: mingw32
      SKIPPCH: -DSKIP_PCH=0
      CMAKE: /mingw32/bin/cmake
      NINJA: /mingw32/bin/ninja
    - MSYS_ARCH: x86_64
      MSYSTEM: mingw64
      SKIPPCH: -DSKIP_PCH=1
      CMAKE: /mingw64/bin/cmake
      NINJA: /mingw64/bin/ninja

matrix:
  exclude:
    - image: Visual Studio 2015
      platform: x86
    - image: Ubuntu
      MSYS_ARCH: i686

before_build:
  - cmd: set PATH=%MSYS_DIR%\usr\bin;%PATH%
  - cmd: bash -lc "pacman --noconfirm --needed -S mingw-w64-$MSYS_ARCH-cmake mingw-w64-$MSYS_ARCH-ninja"
  - mkdir build
  - cmd: bash -lc "cd $APPVEYOR_BUILD_FOLDER/build; PATH=/$MSYSTEM/bin:/usr/bin:$PATH; exec 0</dev/null; $CMAKE .. -G \"Ninja\" -DCMAKE_BUILD_TYPE=Release -DSKIP_FC_GUI=1 -DNO_TEST_EXE=1 $SKIPPCH"

build_script:
  - cmd: bash -lc "cd $APPVEYOR_BUILD_FOLDER/build; PATH=/$MSYSTEM/bin:/usr/bin:$PATH; exec 0</dev/null; $NINJA"
  - sh: |
      sudo service docker start
      python3 appveyor_scripts/docker-build.py $PLATFORM

after_build:
  - cmd: bash -lc "cd $APPVEYOR_BUILD_FOLDER/build/bin; strip --strip-unneeded *.exe"
  - sh: sudo chown -R $(id -u):$(id -g) $APPVEYOR_BUILD_FOLDER/build/bin
  - sh: cd $APPVEYOR_BUILD_FOLDER/build/bin && ls -la && strip --strip-unneeded flightcrew-*

test_script:
  - cmd: set PATH=%APPVEYOR_BUILD_FOLDER%\build\bin;%PATH%
  - cmd: echo %PATH%
  - cmd: where flightcrew-plugin
  - cmd: flightcrew-plugin --version
  - sh: export PATH=$APPVEYOR_BUILD_FOLDER/build/bin:$PATH
  - sh: echo $PATH
  - sh: which flightcrew-plugin
  - sh: flightcrew-plugin --version

artifacts:
  - path: build\bin\*.exe
  - path: build\bin\flightcrew-*