2017-12-20 17:58:32 +08:00
|
|
|
# # # # 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
|
|
|
|
|
2017-12-24 09:34:34 +08:00
|
|
|
environment:
|
2017-12-24 10:18:52 +08:00
|
|
|
matrix:
|
2017-12-24 11:04:32 +08:00
|
|
|
- LUA_VERSION: 5.3.4
|
|
|
|
- LUA_VERSION: 5.2.4
|
|
|
|
- LUA_VERSION: 5.1.5
|
2017-12-24 10:18:52 +08:00
|
|
|
|
2017-12-20 17:58:32 +08:00
|
|
|
platform:
|
|
|
|
- x86
|
|
|
|
- x64
|
|
|
|
|
|
|
|
init:
|
|
|
|
- set arch=
|
2017-12-24 09:34:34 +08:00
|
|
|
- if "%PLATFORM%"=="x64" (set arch= Win64)
|
2017-12-20 17:58:32 +08:00
|
|
|
- echo %APPVEYOR_BUILD_WORKER_IMAGE%
|
2017-12-24 11:15:58 +08:00
|
|
|
- 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%)
|
|
|
|
- if DEFINED MINGW_VERSION ( set CMAKE_GENERATOR=MinGW Makefiles)
|
2017-12-24 11:04:32 +08:00
|
|
|
- echo "%CMAKE_GENERATOR%"
|
2017-12-20 17:58:32 +08:00
|
|
|
|
|
|
|
before_build:
|
2017-12-24 10:36:31 +08:00
|
|
|
- set PYTHON_PATH=C:\Python36
|
|
|
|
- if "%PLATFORM%"=="x64" (set PYTHON_PATH=C:\Python36-x64)
|
|
|
|
- set PATH=%PYTHON_PATH%;%PATH%
|
2017-12-24 09:34:34 +08:00
|
|
|
- md build-sol2
|
|
|
|
- cd build-sol2
|
2017-12-24 14:44:51 +08:00
|
|
|
- cmake .. -G "%CMAKE_GENERATOR%" -DLUA_VERSION="%LUA_VERSION%" -DBUILD_LUA=ON -DBUILD_LUA_AS_DLL=OFF -DTESTS=ON -DEXAMPLES=ON -DSINGLE=ON -DTESTS_EXAMPLES=ON -DTESTS_SINGLE=ON
|
2017-12-20 17:58:32 +08:00
|
|
|
|
2017-12-24 10:36:31 +08:00
|
|
|
build_script:
|
2017-12-25 06:59:45 +08:00
|
|
|
- if "%PLATFORM%"=="x64" (cmake --build . --config Debug)
|
2017-12-25 01:32:23 +08:00
|
|
|
- cmake --build . --config Release
|
2017-12-24 09:34:34 +08:00
|
|
|
|
|
|
|
test_script:
|
2017-12-25 06:59:45 +08:00
|
|
|
- if "%PLATFORM%"=="x64" (ctest -C Debug --output-on-failure)
|
2017-12-24 16:24:07 +08:00
|
|
|
- ctest -C Release --output-on-failure
|
2017-12-24 10:18:52 +08:00
|
|
|
|
|
|
|
notifications:
|
|
|
|
- provider: Webhook
|
2017-12-25 01:32:23 +08:00
|
|
|
url: https://webhooks.gitter.im/e/1af10e654a918bef7f1e
|
2017-12-24 10:18:52 +08:00
|
|
|
method: POST
|
2017-12-25 01:32:23 +08:00
|
|
|
on_build_success: false
|
|
|
|
on_build_failure: false
|
|
|
|
on_build_status_changed: true
|
|
|
|
- provider: Email
|
|
|
|
on_build_success: false
|
|
|
|
on_build_failure: false
|
2017-12-24 10:18:52 +08:00
|
|
|
on_build_status_changed: true
|