summaryrefslogtreecommitdiffstats
path: root/appveyor.yml
blob: 7859e971111b0dcacd93b089c5d1e84689e8e4e3 (plain)
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
version: 1.0.{build}
image:
  - Visual Studio 2017
  - Ubuntu1804

environment:
  CLICOLOR_FORCE: 1
  CHERE_INVOKING: 1 # Tell Bash to inherit the current working directory
  matrix:
    - MSYSTEM: MINGW64
    - MSYSTEM: MSVC
    - MSYSTEM: LINUX

matrix:
  exclude:
    - image: Visual Studio 2017
      MSYSTEM: LINUX
    - image: Ubuntu1804
      MSYSTEM: MINGW64
    - image: Ubuntu1804
      MSYSTEM: MSVC

for:
  -
    matrix:
      only:
        - MSYSTEM: MINGW64
    build_script:
      ps: "C:\\msys64\\usr\\bin\\bash -lc @\"\n
      pacman -S --quiet --noconfirm --needed re2c 2>&1\n
      ./configure.py --bootstrap --platform mingw 2>&1\n
      ./ninja all\n
      ./misc/ninja_syntax_test.py 2>&1\n\"@"
  -
    matrix:
      only:
        - MSYSTEM: MSVC
    build_script:
    - cmd: >-
        call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"

        python configure.py --bootstrap

        ninja.bootstrap.exe all

        python misc/ninja_syntax_test.py

  - matrix:
      only:
        - image: Ubuntu1804
    build_script:
      - ./configure.py --bootstrap
      - ./ninja all
      - misc/ninja_syntax_test.py
      - misc/output_test.py

test: off