-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
54 lines (54 loc) · 1.72 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
version: 2.0.{build}
branches:
only:
- 2.0.x
os: Visual Studio 2013
configuration: Release
platform: x86
clone_folder: C:\projects\dnp3
environment:
ASIO_HOME: C:\asio\asio-1.10.6\include
OSSL_LIB32_DIR: C:\OpenSSL-Win32\lib\VC
OPENDNP3_DIR: C:\projects\dnp3\build\lib
install:
- ps: >-
if (-not (Test-Path C:\asio)){
Start-FileDownload "https://github.com/chriskohlhoff/asio/archive/asio-1-10-6.zip" -FileName asio-1-10-6.zip
7z x -y asio-1-10-6.zip
New-Item C:\asio -ItemType Directory
Move-Item .\asio-asio-1-10-6\asio C:\asio\asio-1.10.6
}
- ps: >-
if (-not (Test-Path C:\OpenSSL-Win32)){
Start-FileDownload "https://slproweb.com/download/Win32OpenSSL-1_0_2e.exe" -FileName "Win32OpenSSL-1_0_2e.exe"
Start-Process "Win32OpenSSL-1_0_2e.exe" -ArgumentList "/silent /verysilent /sp- /suppressmsgboxes" -Wait
}
cache:
- C:\asio
- C:\OpenSSL-Win32
build_script:
- cmd: MKDIR build
- cmd: CD build
- cmd: MKDIR lib
- cmd: cmake .. -DCMAKE_INSTALL_PREFIX=lib -DFULL=ON -DCMAKE_BUILD_TYPE=Release
- cmd: msbuild opendnp3.sln /p:Configuration=Release /p:Platform=Win32
- cmd: msbuild INSTALL.vcxproj /p:Configuration=Release /p:Platform=Win32
- cmd: cd ..
- cmd: msbuild dotnet\bindings.sln /p:Configuration=Release /p:Platform=Win32
after_build:
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true"){
nuget pack dotnet\nuget\opendnp3.nuspec -Version "$env:APPVEYOR_REPO_TAG_NAME"
}
test_script:
- cmd: c:\projects\dnp3\build\Release\testopendnp3.exe
- cmd: c:\projects\dnp3\build\Release\testopenpal.exe
artifacts:
- path: '*.nupkg'
name: nuget
deploy:
provider: NuGet
api_key:
secure: H7w8XBF6q0Gxyo1xKhywjZ4qrjfy3W87oGAAu30BIas1paWIE1UMvk6QM/3xzVE9
on:
appveyor_repo_tag: true