From 83af1e71d4f8a2c55c3b1812ea8f23b39dda9695 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Tue, 26 Nov 2019 07:54:47 -0800 Subject: Added appveyor script --- README.md | 4 ++++ appveyor.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 appveyor.yml diff --git a/README.md b/README.md index 2e98cdf..6a7406b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ # DiligentTools +[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](License.txt) +[![Chat on gitter](https://badges.gitter.im/gitterHQ/gitter.png)](https://gitter.im/diligent-engine) +[![Build Status](https://ci.appveyor.com/api/projects/status/github/DiligentGraphics/DiligentTools?svg=true)](https://ci.appveyor.com/project/DiligentGraphics/diligenttools) + This module implements additional functionality on top of the [Diligent Engine](https://github.com/DiligentGraphics/DiligentEngine)'s core module and contains the following libraries: diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..a110c5b --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,49 @@ +version: '2.4.{build}' + +# branches to build +branches: + # whitelist + only: + - master + +image: +- Visual Studio 2017 + +environment: + matrix: + - platform: x64 + configuration: Debug + + - platform: x64 + configuration: Release + +# clone directory +clone_folder: c:\projects\DiligentTools + +install: + # clone submodules + - git clone https://github.com/DiligentGraphics/DiligentCore.git ../DiligentCore --recursive + + # Install a recent CMake + - set CMAKE_URL="https://github.com/Kitware/CMake/releases/download/v3.15.4/cmake-3.15.4-win64-x64.zip" + - appveyor DownloadFile %CMAKE_URL% -FileName cmake.zip + - 7z x cmake.zip -oC:\projects\deps > nul + - move C:\projects\deps\cmake-* C:\projects\deps\cmake # Move to a version-agnostic directory + - set PATH=C:\projects\deps\cmake\bin;C:\Python37;%PATH% + - cmake --version + - python --version + +before_build: + - cd c:\projects\DiligentTools\BuildTools\FormatValidation + - validate_format_win.bat + - cd c:\projects + - echo cmake_minimum_required(VERSION 3.6) > CMakeLists.txt + - echo Project(DiligentTools_Test) >> CMakeLists.txt + - echo add_subdirectory(DiligentCore) >> CMakeLists.txt + - echo add_subdirectory(DiligentTools) >> CMakeLists.txt + - cmake -S . -B ./build -G "Visual Studio 15 2017" -A x64 + +build: + project: c:\projects\build\DiligentTools_Test.sln + verbosity: minimal + parallel: true -- cgit v1.2.3