-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
48 lines (33 loc) · 1.15 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
version: 1.0.{build}
image: Visual Studio 2017 Preview
configuration:
- Debug
- Release
platform: x86
before_build:
- ps: >-
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 ../..
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",""))
}
build:
project: CanFestival-3.vc15.sln
verbosity: minimal
test: off
deploy: off