This repository was archived by the owner on Mar 4, 2022. It is now read-only.
forked from shapelets/khiva-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.appveyor.yml
More file actions
56 lines (55 loc) · 2.8 KB
/
.appveyor.yml
File metadata and controls
56 lines (55 loc) · 2.8 KB
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
# 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
matrix:
- PATH: $(AF_PATH)\lib;$(KHIVA_PATH)\lib;C:\Python36-x64;C:\Python36-x64\Scripts;$(PATH)
- PATH: $(AF_PATH)\lib;$(KHIVA_PATH)\lib;C:\Python27-x64;C:\Python27-x64\Scripts;$(PATH)
cache:
- c:\tools\vcpkg\installed
- C:\Program Files\ArrayFire
- C:\Program Files\Khiva
clone_folder: C:\khiva-python
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.2.0/khiva-v0.2.0-unattended.exe" -FileName khiva-v0.2.0-unattended.exe };
if(!(Test-Path -Path "C:\Program Files\Khiva" )){ .\khiva-v0.2.0-unattended.exe /S };
}else{
git clone -q https://github.com/shapelets/khiva.git C:\khiva-library ;
cd C:\khiva-library;
git submodule update --init;
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_ONLY_CPU_BACKEND=ON -G"$env:GENERATOR";
cmake --build . --config Release --target INSTALL -- /m;
}
- cd C:\khiva-python
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- pip install codecov
build_script:
- python setup.py install
test_script:
- coverage run -m unittest discover tests/unit_tests *_tests.py -f -v
- python -m xmlrunner discover tests/unit_tests *_tests.py
on_finish:
- codecov -F Windows -X gcov
- ps: |
$files = Get-ChildItem -Path . -File -Filter *.xml
foreach ($file in $files) {
(New-Object System.Net.WebClient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", $file.FullName)
}