forked from thibault-martinez/iota.lib.cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.appveyor.yml
89 lines (76 loc) · 3.33 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
#
# MIT License
#
# Copyright (c) 2017-2018 Thibault Martinez and Simon Ninon
#
# 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.
#
#
# Notes:
# - Minimal appveyor.yml file is an empty file. All sections are optional.
# - Indent each level of configuration with 2 spaces. Do not use tabs!
# - All section names are case-sensitive.
# - Section names should be unique on each level.
#---------------------------------#
# general configuration #
#---------------------------------#
# version format
version: 1.0.{build}
#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image:
- Visual Studio 2017
- Visual Studio 2015
#---------------------------------#
# build configuration #
#---------------------------------#
configuration:
- Release
# AppVeyor only processes one build at a time, leading to a large queue of builds
# To avoid that, it is more convenient to skip Debug build, especially when the main target is Release environment
#- Debug
environment:
matrix:
- arch: Win64
- arch: Win32
init:
- set generator_arch=
- if "%arch%"=="Win64" (set generator_arch= Win64)
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set generator="Visual Studio 15 2017%generator_arch%")
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set generator="Visual Studio 14 2015%generator_arch%")
- set PATH=%PATH%;C:\projects\iota-lib-cpp\deps\bin
install:
- git submodule update --init --recursive
- set JAVA_TOOL_OPTIONS=-Xmx2000m
- sh test/testnet/scripts/iri_setup_windows.sh
before_build:
- mkdir build
- cd build
- cmake .. -DBUILD_TESTS=1 -G %generator%
build:
project: c:\projects\iota-lib-cpp\build\iota.sln
test_script:
- ps: |
Start-Job -ScriptBlock { java -jar C:\projects\iota-lib-cpp\test\testnet\iri\target\iri-1.5.0.jar --testnet --testnet-no-coo-validation --snapshot=C:\projects\iota-lib-cpp\test\testnet\iri\src/main/resources/Snapshot.txt -p 14265 --mwm 1 -c C:\projects\iota-lib-cpp\test\testnet\iri\iri.ini 1> C:\projects\iota-lib-cpp\test\testnet\iri\iri.1 2> C:\projects\iota-lib-cpp\test\testnet\iri\iri.2 }
Start-Sleep -s 120
Get-Content C:\projects\iota-lib-cpp\test\testnet\iri\iri.1
Get-Content C:\projects\iota-lib-cpp\test\testnet\iri\iri.2
ctest -C Release -VV