forked from IntelRealSense/librealsense
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
52 lines (39 loc) · 1.46 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
# Copyright (c) 2017 Intel Corporation. All rights reserved.
# Use of this source code is governed by a Apache License
# Version 2.0 license that can be found in the LICENSE file.
version: 2.1.{build}
branches:
only:
- development
skip_tags: true
environment:
nodejs_version: "6"
image: Visual Studio 2015
clone_folder: c:\projects\librealsense
init:
- cmd:
install:
- ps: Install-Product node $env:nodejs_version
- cmd: >-
cd c:\projects\librealsense\.. && git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
set OLDPATH=%PATH% && set PATH=%PATH%;c:\projects\depot_tools
cd c:\projects\librealsense\wrappers\nodejs\tools && npm install
cd c:\projects\librealsense\wrappers\nodejs && node .\tools\linter.js && set PATH=%OLDPATH% && set OLDPATH=
before_build:
- cmd: >-
cd c:\projects\librealsense && mkdir build && cd build
cmake .. -DBUILD_EXAMPLES=true -DBUILD_PYTHON_BINDINGS=true -DBUILD_NODEJS_BINDINGS:BOOL=true
build:
project: ./build/librealsense2.sln
verbosity: minimal
test_script:
- ps: >-
$url = "http://realsense-hw-public.s3.amazonaws.com/rs-tests/awgc4"
$output = "C:/projects/librealsense/build/Debug/awgc4"
Invoke-WebRequest -Uri $url -OutFile $output
& cmd.exe /c C:/projects/librealsense/build/Debug/live-test.exe from C:/projects/librealsense/build/Debug/awgc4 -d yes
if ($LASTEXITCODE -ne 0)
{
throw "Tests failed!"
}
# TODO(halton): Add unit test for Node.js binding