-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f786854
commit f9194cb
Showing
6 changed files
with
78 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
platform: | ||
- x64 | ||
|
||
clone_script: | ||
- cmd: git clone -q --branch=%APPVEYOR_REPO_BRANCH% https://github.com/%APPVEYOR_REPO_NAME%.git %APPVEYOR_BUILD_FOLDER% | ||
- cmd: cd %APPVEYOR_BUILD_FOLDER% | ||
- cmd: git checkout -qf %APPVEYOR_REPO_COMMIT% | ||
- cmd: git submodule update --init | ||
|
||
environment: | ||
matrix: | ||
- PY_VERSION: "3.6" | ||
VC_VERSION: "14" | ||
|
||
build_script: | ||
# This is a small script that takes the PATH variable and transforms its entries | ||
# into their short-path (DOS-like) counterparts. The new path is written into the file path.txt, | ||
# from which it is then loaded. This allows to shorten the overall length of the PATH variable, | ||
# thus avoiding an issue with conda. See also: | ||
# https://github.com/conda/conda/issues/1923 | ||
# It might be that this will be solved in future conda versions. | ||
- config\\shorten_path.bat > path.txt | ||
- set /p PATH=<path.txt | ||
# we may want to support more python versions in the future | ||
- if "%PY_VERSION%" == "3.6" set PATH=C:\\Miniconda3-x64\\Scripts;%PATH% | ||
- if "%PY_VERSION%" == "3.6" conda create -c conda-forge -q --yes -n python python=%PY_VERSION% | ||
- activate python | ||
- set CONDA_ACTIVE_ENV=C:\\Miniconda3-x64\\envs\\python | ||
- set BOOST_INCLUDE=%CONDA_ACTIVE_ENV%\\Library\\include | ||
- echo "BOOST_ROOT:" | ||
- echo "%BOOST_ROOT%" | ||
- conda install -c conda-forge --yes xtensor-python c-blosc boost bzip2 | ||
- cd %APPVEYOR_BUILD_FOLDER% | ||
- mkdir build | ||
- cd build | ||
- cmake .. -G "Visual Studio %VC_VERSION% Win64" -DCMAKE_PREFIX_PATH="%CONDA_ACTIVE_ENV%" -DWITH_BLOSC=ON -DWITH_ZLIB=ON -DWITH_BZIP2=ON -DWITHIN_TRAVIS=ON -DBOOST_INCLUDEDIR=%BOOST_INCLUDE% | ||
- cmake --build . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@echo off | ||
|
||
SET MyPath=%PATH% | ||
rem echo %MyPath% | ||
rem echo -- | ||
|
||
setlocal EnableDelayedExpansion | ||
|
||
SET TempPath="%MyPath:;=";"%" | ||
SET var= | ||
FOR %%a IN (%TempPath%) DO ( | ||
IF exist %%~sa ( | ||
SET "var=!var!;%%~sa" | ||
) ELSE ( | ||
rem echo %%a does not exist | ||
) | ||
) | ||
|
||
rem echo -- | ||
echo !var:~1! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters