-
-
Notifications
You must be signed in to change notification settings - Fork 338
/
appveyor.yml
68 lines (66 loc) · 3.03 KB
/
appveyor.yml
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
58
59
60
61
62
63
64
65
66
67
68
#***************************************************************************
# @file appveyor.yml
# @author itas109 ([email protected]) \n\n
# Blog : https://blog.csdn.net/itas109 \n
# Github : https://github.com/itas109 \n
# Gitee : https://gitee.com/itas109 \n
# QQ Group : 129518033
# @brief Lightweight cross-platform serial port library based on C++
# @copyright The CSerialPort is Copyright (C) 2014 itas109 <[email protected]>.
# You may use, copy, modify, and distribute the CSerialPort, under the terms
# of the LICENSE file.
############################################################################
version: 1.0.{build}
image: Visual Studio 2015
clone_depth: 1
environment:
build_type: Release
matrix:
- compiler: msvc-14-win32
generator: Visual Studio 14 2015
build_test: ON
- compiler: msvc-14-win64
generator: Visual Studio 14 2015 Win64
build_test: ON
- compiler: msvc-14-win32-xp
generator: Visual Studio 14 2015
platformset: v140_xp
- compiler: msvc-12-win32
generator: Visual Studio 12 2013
- compiler: msvc-12-win64
generator: Visual Studio 12 2013 Win64
- compiler: msvc-11-win32
generator: Visual Studio 11 2012
- compiler: msvc-11-win64
generator: Visual Studio 11 2012 Win64
- compiler: msvc-10-win32
generator: Visual Studio 10 2010
- compiler: msvc-08-win32
generator: Visual Studio 9 2008
- compiler: mingw-4.9.2-posix-win32
generator: MinGW Makefiles
cxx_path: C:\Qt\Tools\mingw492_32\bin
- compiler: mingw-5.3.0-posix-win32
generator: MinGW Makefiles
cxx_path: C:\mingw-w64\i686-5.3.0-posix-dwarf-rt_v4-rev0\mingw32\bin
- compiler: mingw-7.3.0-posix-win64
generator: MinGW Makefiles
cxx_path: C:\mingw-w64\x86_64-7.3.0-posix-seh-rt_v5-rev0\mingw64\bin
install:
- ps: "# git bash conflicts with MinGW makefiles\nif ($env:generator -eq \"MinGW Makefiles\") \n{\n $env:path = $env:path.replace(\"C:\\Program Files\\Git\\usr\\bin;\", \"\")\n if ($env:cxx_path -ne \"\") \n {\n $env:path = \"$env:cxx_path;\" + $env:path\n }\n}\n\n\nWrite-Output \"APPVEYOR_BUILD_FOLDER: $env:APPVEYOR_BUILD_FOLDER\"\nWrite-Output \"Compiler: $env:compiler\"\nWrite-Output \"Generator: $env:generator\"\n# Write-Output \"Path: $env:path\"\nWrite-Output \"Env:build_type: $env:build_type\""
build_script:
- ps: "cd $env:APPVEYOR_BUILD_FOLDER\n\nmkdir bin\n\ncd bin\n\nif ($env:build_test -ne \"ON\") \n{\n $env:build_test=\"OFF\"\n}\n\nif ($env:platformset -ne \"\") \n{\n cmake -G \"$env:generator\" -DCSERIALPORT_BUILD_TEST=\"$env:build_test\" -DCMAKE_BUILD_TYPE=\"$env:build_type\" .. \n}\nelse\n{\n cmake -G \"$env:generator\" -T \"$env:platformset\" -DCSERIALPORT_BUILD_TEST=\"$env:build_test\" -DCMAKE_BUILD_TYPE=\"$env:build_type\" .. \n}\n\ncmake --build ."
test_script:
- ps: >-
if ($env:build_test -eq "ON")
{
cd $env:APPVEYOR_BUILD_FOLDER
bin\bin\Debug\CSerialPortTest.exe
}
notifications:
- provider: Email
to:
on_build_success: true
on_build_failure: true
on_build_status_changed: true