mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
75 lines
2.4 KiB
YAML
75 lines
2.4 KiB
YAML
# # # # sol2
|
|
# The MIT License (MIT)
|
|
#
|
|
# Copyright (c) 2013-2017 Rapptz, ThePhD, and contributors
|
|
#
|
|
# Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
# this software and associated documentation files (the "Software"), to deal in
|
|
# the Software without restriction, including without limitation the rights to
|
|
# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
# the Software, and to permit persons to whom the Software is furnished to do so,
|
|
# subject to the following conditions:
|
|
#
|
|
# The above copyright notice and this permission notice shall be included in all
|
|
# copies or substantial portions of the Software.
|
|
#
|
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
# FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
# COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
# IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
|
version: 1.0.{build}
|
|
|
|
pull_requests:
|
|
do_not_increment_build_number: true
|
|
|
|
image:
|
|
- Visual Studio 2017
|
|
- Visual Studio 2015
|
|
|
|
configuration: Release
|
|
|
|
environment:
|
|
matrix:
|
|
- LUA_VERSION: 5.3.4
|
|
- LUA_VERSION: 5.2.4
|
|
- LUA_VERSION: 5.1.5
|
|
|
|
platform:
|
|
- x86
|
|
- x64
|
|
|
|
init:
|
|
- set arch=
|
|
- if "%PLATFORM%"=="x64" (set arch= Win64)
|
|
- echo %arch%
|
|
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" ( set CMAKE_GENERATOR="Visual Studio 15 2017%arch%" )
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" ( set CMAKE_GENERATOR="Visual Studio 14 2015%arch%" )
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" ( set CMAKE_GENERATOR="Visual Studio 12 2013%arch%" )
|
|
- echo %CMAKE_GENERATOR%
|
|
|
|
before_build:
|
|
- md build-sol2
|
|
- cd build-sol2
|
|
- cmake .. -G "%CMAKE_GENERATOR%" -DLUA_VERSION=%LUA_VERSION% -DLUA_BUILD=ON -DTESTS=ON -DEXAMPLES=ON -DSINGLE=ON -DTESTS_EXAMPLES=ON -DTESTS_SINGLE=ON
|
|
|
|
build:
|
|
project: c:\projects\sol2\build-sol2\sol2.sln
|
|
verbosity: minimal
|
|
parallel: true
|
|
|
|
test_script:
|
|
- cd build-sol2
|
|
- ctest
|
|
|
|
notifications:
|
|
- provider: Webhook
|
|
url: https://webhooks.gitter.im/e/a66a71642a00d2e50d2e
|
|
method: POST
|
|
on_build_success: true
|
|
on_build_failure: true
|
|
on_build_status_changed: true
|