-
Notifications
You must be signed in to change notification settings - Fork 1
/
.appveyor.yml
48 lines (46 loc) · 2.52 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
# Copyright (c) 2019 Shapelets.io
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
image:
- Visual Studio 2017
environment:
GENERATOR: "Visual Studio 15 Win64"
BOOST_PATH: C:\Libraries\boost_1_67_0
AF_PATH: C:\Program Files\ArrayFire\v3
KHIVA_PATH: C:\Program Files\Khiva\v0
PATH: $(AF_PATH)\lib;$(KHIVA_PATH)\lib;C:\Program Files\R\R-3.6.0\bin;C:\Python36-x64;C:\Python36-x64\Scripts;C:\Rtools\bin;$(PATH)
cache:
- C:\tools\vcpkg\installed
- C:\Program Files\ArrayFire
clone_folder: C:\khiva-r
platform:
- x64
before_build:
- ps: if(!(Test-Path -Path "C:\Program Files\ArrayFire" )){ appveyor DownloadFile "https://www.dropbox.com/s/13wnbd1qynjmw0i/ArrayFire-v3.6.2.zip?dl=1" -FileName ArrayFire-v3.6.2.zip }
- ps: if(!(Test-Path -Path "C:\Program Files\ArrayFire" )){ 7z x ArrayFire-v3.6.2.zip -o"C:\Program Files" }
- reg add HKCU\Software\Kitware\CMake\Packages\ArrayFire /v ArrayFire_CMake_DIR /d "C:\Program Files\ArrayFire\v3\cmake" /f
- vcpkg install --triplet x64-windows gtest eigen3
- ps: if ($env:INSTALL_KHIVA_METHOD -eq "installer"){
if(!(Test-Path -Path "C:\Program Files\Khiva" )){ appveyor DownloadFile "https://github.com/shapelets/khiva/releases/download/v0.1.0/khiva-v0.1.0-unattended.exe" -FileName khiva-v0.1.0-unattended.exe };
if(!(Test-Path -Path "C:\Program Files\Khiva" )){ .\khiva-v0.1.0-unattended.exe /S };
}else{
git clone -q https://github.com/shapelets/khiva.git C:\khiva-library;
cd C:\khiva-library;
mkdir build;
cd build;
cmake .. -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake -DBOOST_ROOT="$($env:BOOST_PATH)" -DKHIVA_USE_CONAN=OFF -DKHIVA_BUILD_DOCUMENTATION=OFF -DKHIVA_BUILD_BENCHMARKS=OFF -DKHIVA_BUILD_EXAMPLES=OFF -DKHIVA_BUILD_TESTS=OFF -DKHIVA_ONLY_CPU_BACKEND=ON -G"$env:GENERATOR";
cmake --build . --config Release --target INSTALL -- /m;
}
- cd C:\khiva-r
- start /wait choco install r.project -y
- pip install codecov
- Rscript .CI\appveyor\install.R
build_script:
- Rscript .CI\appveyor\build.R
test_script:
- Rscript .CI\appveyor\test.R
on_finish:
- codecov -F Windows -f cobertura.xml
# - ps: (New-Object System.Net.WebClient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\test-out.xml))