Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
45f8c022
Unverified
Commit
45f8c022
authored
Jan 28, 2020
by
peastman
Committed by
GitHub
Jan 28, 2020
Browse files
Merge pull request #2534 from andysim/azurewin
Windows tests on Azure
parents
d1e0ed2d
8517401d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
109 additions
and
0 deletions
+109
-0
.azure-pipelines/azure-pipelines-windows.yml
.azure-pipelines/azure-pipelines-windows.yml
+109
-0
No files found.
.azure-pipelines/azure-pipelines-windows.yml
0 → 100644
View file @
45f8c022
jobs
:
# Configure, build, install, and test job
-
job
:
'
windows_build'
displayName
:
'
Windows
VS2015'
pool
:
vmImage
:
'
vs2015-win2012r2'
timeoutInMinutes
:
360
variables
:
llvm.version
:
'
7.0.1'
mkl.version
:
'
2019.1'
python.version
:
'
3.6'
cmake.build.type
:
'
Release'
steps
:
# Install Chocolatey (https://chocolatey.org/install#install-with-powershellexe)
-
powershell
:
|
Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Write-Host "##vso[task.setvariable variable=PATH]$env:PATH"
choco --version
displayName
:
"
Install
Chocolatey"
# Install Miniconda
-
script
:
|
choco install -y miniconda3
choco install -y doxygen.install
choco install -y swig
choco install -y graphviz
choco install -y 7zip.install
choco install -y wget
set PATH=C:\tools\miniconda3\Scripts;C:\tools\miniconda3;C:\tools\miniconda3\Library\bin;%PATH%
echo '##vso[task.setvariable variable=PATH]%PATH%'
set LIB=C:\tools\miniconda3\Library\lib;%LIB%
echo '##vso[task.setvariable variable=LIB]%LIB%'
conda --version
displayName
:
"
Install
Miniconda"
# Configure Miniconda
-
script
:
|
conda config --set always_yes yes
conda info
displayName
:
"
Configure
Miniconda"
# Create conda enviroment
# Note: conda activate doesn't work here, because it creates a new shell!
-
script
:
|
conda install cmake ^
cython ^
fftw ^
ninja ^
numpy ^
pytest ^
pytest-xdist ^
python=$(python.version)
conda list
displayName
:
"
Install
conda
packages"
# Download OpenCL Headers and build the ICD loader
-
script
:
|
setlocal EnableDelayedExpansion
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
mkdir opencl
cd opencl
wget https://www.khronos.org/registry/cl/specs/opencl-icd-1.2.11.0.tgz -O opencl-icd-1.2.11.0.tgz
7z x opencl-icd-1.2.11.0.tgz > $null
7z x opencl-icd-1.2.11.0.tar > $null
robocopy .\icd . /E /MOVE
mkdir inc\CL > $null
wget https://github.com/KhronosGroup/OpenCL-Headers/archive/master.zip
7z x master.zip
move .\OpenCL-Headers-master\CL\*.h .\inc\CL\
mkdir lib > $null
cd lib
cmake -G Ninja ..
cmake --build . ^
-- -j %NUMBER_OF_PROCESSORS%
displayName
:
"
Download
and
install
OpenCL"
workingDirectory
:
$(Pipeline.Workspace)
# Configure
-
script
:
|
setlocal EnableDelayedExpansion
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
mkdir build & cd build
cmake -G Ninja ^
-DOPENCL_INCLUDE_DIR=$(Pipeline.Workspace)/opencl/inc ^
-DOPENCL_LIBRARY=$(Pipeline.Workspace)/opencl/lib/OpenCL.lib ^
-DCMAKE_BUILD_TYPE=$(cmake.build.type) ^
-DCMAKE_INSTALL_PREFIX=../install ^
-DOPENMM_BUILD_EXAMPLES=OFF ^
-DOPENMM_BUILD_OPENCL_TESTS=OFF ^
$(Build.SourcesDirectory)
displayName
:
"
Configure
OpenMM
with
CMake"
workingDirectory
:
$(Build.BinariesDirectory)
# Build
-
script
:
|
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86_amd64
cmake --build . ^
--config $(cmake.build.type) ^
-- -j %NUMBER_OF_PROCESSORS%
cmake --build . --target install
cmake --build . --target PythonInstall
displayName
:
"
Build
OpenMM"
workingDirectory
:
$(Build.BinariesDirectory)/build
# Test
-
script
:
|
python $(Build.SourcesDirectory)\devtools\run-ctest.py --job-duration 50 --parallel %NUMBER_OF_PROCESSORS%
cd python\tests
python --version
set PYTHONPATH=D:\tools\miniconda3\Lib\site-packages
dir %PYTHONPATH%
py.test -v -n %NUMBER_OF_PROCESSORS%
workingDirectory
:
$(Build.BinariesDirectory)/build
displayName
:
"
Run
OpenMM
tests"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment