]> git.lizzy.rs Git - nothing.git/blobdiff - appveyor.yml
Merge pull request #1238 from tsoding/remove-lt
[nothing.git] / appveyor.yml
index 869da07803ef14c602608e89bd1ecad207b82ed1..fcbe7cd7639c8b36580351a8eb7125ef5a9f2584 100644 (file)
@@ -1,6 +1,9 @@
+# TODO(#1183): appveyor linux build does not support clang
+# TODO(#1184): appveyor does not support macos build
 image:
   - ubuntu1804
   - Visual Studio 2015
+  - macos
 environment: # enable mingw build on windows image
   MSYSTEM: MINGW64
   CHERE_INVOKING: 1
@@ -11,6 +14,8 @@ matrix:
   exclude: # no mingw build on linux
     - image: ubuntu1804
       BUILD_TYPE: mingw
+    - image: macos
+      BUILD_TYPE: mingw
 install:
   - ps: |
        if ($isWindows) {
@@ -23,22 +28,26 @@ install:
               7z x SDL2-devel-2.0.9-VC.zip
               mv SDL2-2.0.9 SDL2
           }
-       } else {
+       } elseif ($isLinux) {
            bash -c "sudo apt-get update -qq"
-           bash -c "sudo apt-get install -qq cmake cmake-data libsdl2-dev libxml2-dev"
+           bash -c "sudo apt-get install -qq libsdl2-dev"
+       } else {
+           bash -c "brew install sdl2"
        }
 build_script:
-  - mkdir build
-  - cd build
   - ps: |
-       if ($isWindows -and $env:BUILD_TYPE -eq 'mingw') {
-           C:\msys64\usr\bin\bash.exe -lc "cmake .. -G 'MSYS Makefiles'"
-           C:\msys64\usr\bin\bash.exe -lc "cmake --build ."
-           ./nothing_test.exe
+       if ($isWindows) {
+           mkdir build
+           cd build
+           if ($env:BUILD_TYPE -eq 'mingw') {
+               C:\msys64\usr\bin\bash.exe -lc "cmake .. -G 'MSYS Makefiles' -DNOTHING_CI=ON"
+               C:\msys64\usr\bin\bash.exe -lc "cmake --build ."
+           } else {
+               cmake .. -DNOTHING_CI=ON
+               cmake --build .
+           }
+       } elseif ($isLinux) {
+           bash -c "CC=gcc ./build-posix.sh"
        } else {
-           cmake ..
-           cmake --build .
+           bash -c "CC=clang ./build-posix.sh"
        }
-  # TODO(#866): Unit Tests are not run on Windows CI build
-  #   https://ci.appveyor.com/project/rexim/nothing/builds/24807772/job/nr36kt098djthl4l#L431
-  - sh: ./nothing_test