forked from Laerdal/canfestival-3-asc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
69 lines (48 loc) · 1.82 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
version: 1.0.{build}
image: Visual Studio 2017 Preview
configuration:
- Debug
- Release
platform:
- x86
- x64
shallow_clone: true
before_build:
- ps: >-
write-host Downloading nuget packages
nuget restore CanFestival-3.vc15.sln
write-host installing gnosis util
cd objdictgen
7z e Gnosis_Utils-current.tar.gz > $null
7z x Gnosis_Utils-1.2.2.tar > $null
cd Gnosis_Utils-1.2.2
python setup.py install > $null
cd $env:APPVEYOR_BUILD_FOLDER
write-host Downloading and unpacking drivers into ./download
mkdir download
Add-Type -AssemblyName System.IO.Compression.FileSystem
#Add new drivers here
$drivers = @(("http://www.anagate.de/download/API/AnaGateAPI-CAN-1.11-2.13.zip", "download\AnaGateAPI-CAN.zip"),
("https://www.peak-system.com/fileadmin/media/files/pcan-basic.zip","download\pcan-basic.zip"))
foreach ($d in $drivers)
{
$source = $d[0]
$destination = "$env:APPVEYOR_BUILD_FOLDER\"+$d[1]
Invoke-WebRequest $source -OutFile $destination
[System.IO.Compression.ZipFile]::ExtractToDirectory($destination, $destination.Replace(".zip",""))
}
test/external/downloadHippomocks.ps1
build:
project: CanFestival-3.vc15.sln
verbosity: minimal
test_script:
- ps: >-
if($env:PLATFORM -eq "x64")
{
cd $env:PLATFORM
}
cd $env:CONFIGURATION
& "./unitTests.exe" "--gtest_filter=-*HW*:*Test_Anagate*:*Test_Peak*" "--gtest_output=xml"
(new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test_detail.xml))
on_failure:
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))