Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .appveyor.yml #36

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
45 changes: 22 additions & 23 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,17 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

image:
- Visual Studio 2017
- Visual Studio 2019
environment:
GENERATOR: "Visual Studio 15 2017 Win64"
BOOST_PATH: C:\Libraries\boost_1_69_0
GENERATOR: Visual Studio 16 2019
AF_PATH: C:\Program Files\ArrayFire\v3
AF_DISABLE_GRAPHICS: 1
KHIVA_PATH: C:\Program Files\Khiva\v0
KHIVALIB_DIR: $(KHIVA_PATH)\lib
VCPKG_ROOT: C:\Tools\vcpkg
matrix:
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
PATH: $(JAVA_HOME)\bin;$(AF_PATH)\lib;$(KHIVALIB_DIR);$(PATH)
- JAVA_HOME: C:\Program Files\Java\jdk11
PATH: $(JAVA_HOME)\bin;$(AF_PATH)\lib;$(KHIVALIB_DIR);$(PATH)
matrix:
fast_finish: true
cache:
Expand All @@ -31,27 +28,29 @@ clone_folder: C:\khiva-java
platform:
- x64
before_build:
- ps: |
env
java -version
python --version
pip install -U pip
pip install codecov
if(!(Test-Path -Path "C:\Program Files\ArrayFire" )){ appveyor DownloadFile "http://arrayfire.s3.amazonaws.com/3.6.2/ArrayFire-v3.6.2.exe" }
if(!(Test-Path -Path "C:\Program Files\ArrayFire" )){ .\ArrayFire-v3.6.2.exe /S }
vcpkg install --triplet x64-windows gtest eigen3
git clone --depth 1 --recurse-submodules -q https://github.com/shapelets/khiva.git C:\khiva-library
cd C:\khiva-library
mkdir build
cd build
cmake .. -G"$env:GENERATOR" -DArrayFire_DIR="$env:AF_PATH/cmake" -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_ROOT/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;
cmake --build . --config Release --target install -- /m
cd C:\khiva-java
- SET PATH=%KHIVALIB_DIR%;%JAVA_HOME%;%AF_PATH%\lib;C:\Python37-x64;C:\Python37-x64\Scripts;%PATH%
- 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 boost-math benchmark
- ps: |
Start-Process "choco" "install nsis" -NoNewWindow -Wait
Start-Process "choco" "install doxygen.install" -NoNewWindow -Wait
Start-Process "choco" "install graphviz" -NoNewWindow -Wait
python -m pip install --upgrade pip
python -m pip install sphinx==1.7.5 breathe==4.9.1 sphinx_rtd_theme==0.4.0
- git clone --depth 1 --recurse-submodules -q https://github.com/shapelets/khiva.git C:\khiva-library
- cd C:\khiva-library
- mkdir build
- cd build
- cmake .. -G"%GENERATOR%" -DArrayFire_DIR="%AF_PATH%/cmake" -DCMAKE_TOOLCHAIN_FILE="%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake" -DKHIVA_USE_CONAN=OFF -DKHIVA_BUILD_DOCUMENTATION=OFF -DKHIVA_BUILD_BENCHMARKS=OFF -DKHIVA_BUILD_EXAMPLES=OFF -DKHIVA_BUILD_TESTS=OFF;
- cmake --build . --config Release --target install -- /m
- cd C:\khiva-java
build_script:
- ps: mvn clean package
- mvn clean package --batch-mode
on_finish:
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
- cmd: codecov -F Windows -f C:\khiva-java\target\site\jacoco\jacoco.xml
# - cmd: codecov -F Windows -f C:\khiva-java\target\site\jacoco\jacoco.xml
- ps: |
$files = Get-ChildItem -Path .\target\surefire-reports -File -Filter *.xml
foreach ($file in $files) {
Expand Down