-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathappveyor.yml
57 lines (51 loc) · 1.67 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
version: build{build}
image: Visual Studio 2015
clone_folder: C:\projects\ibex-lib
test: off
configuration:
- Release
environment:
matrix:
- CMAKE_PLATFORM: "Visual Studio 14 2015"
CPACK_PATH: 'C:\\Program Files (x86)\\CMake\\bin'
platform: x86
CPPUNIT_DIR: C:\tools\vcpkg\installed\x86-windows
- CMAKE_PLATFORM: "Visual Studio 14 2015 Win64"
CPACK_PATH: 'C:\\Program Files (x86)\\CMake\\bin'
platform: x64
CPPUNIT_DIR: C:\tools\vcpkg\installed\x64-windows
init:
- cmd: vcpkg cache
cache:
- C:\tools\vcpkg\installed\
install:
- vcpkg install cppunit:"%platform%"-windows
- choco install winflexbison
build_script:
- echo Running cmake...
- cd c:\projects\ibex-lib
- mkdir build
- cd build
- cmake -G "%CMAKE_PLATFORM%" -DCMAKE_BUILD_TYPE=Release -DINTERVAL_LIB=filib -DCPPUNIT_DIR="%CPPUNIT_DIR%" ../
- set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- set MSBuildOptions=/v:m /p:Configuration=%Configuration% /logger:%MSBuildLogger%
- msbuild %MSBuildOptions% PACKAGE.vcxproj
- set PATH=%CPACK_PATH%;%PATH% # conflit with choco pack alias. need to put cpack.exe first
- CPack.exe -G ZIP
artifacts:
- path: build\ibex*.exe
name: ibex-lib
- path: build\ibex*.zip
name: ibex-lib-zip
# deploy:
# release: ibex-lib-v$(appveyor_build_version)
# description: 'ibexlib'
# provider: GitHub
# auth_token:
# secure: *******************************************
# artifact: ibex-lib,ibex-lib-zip
# draft: true
# prerelease: false
# on:
# branch: develop_test_appveyor # release from master branch only
# appveyor_repo_tag: false # deploy on tag push only