appveyor.yml 2.12 KB
Newer Older
Robert McGibbon's avatar
Robert McGibbon committed
1
2
3
4
5
6
7
8
9
10
os: Windows Server 2012 R2
shallow_clone: true
install:

# Setup shell for VS2010, x64, release mode
  - >
    "%ProgramFiles%\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release
# Set path to python, git-bash tools.
  - "set PATH=C:\\Python34-x64;C:\\Python34-x64\\Scripts;%PATH%"
  - "set PATH=C:\\Program Files (x86)\\Git\\bin;%PATH%"
11
  - pip install pytest
Robert McGibbon's avatar
Robert McGibbon committed
12
13
14
15
16
17
18
19
20
21

# Download FFTW3 for PME plugin
  - C:\MinGW\msys\1.0\bin\wget -q ftp://ftp.fftw.org/pub/fftw/fftw-3.3.4-dll64.zip
  - 7z x fftw-3.3.4-dll64.zip -oC:\fftw > null
  - cd C:\fftw
  - lib /def:libfftw3f-3.def
  - cd %APPVEYOR_BUILD_FOLDER%
  - "set PATH=C:\\fftw;%PATH%"

# Download and install some OpenMM build dependencies (doxygen, swig)
Robert T. McGibbon's avatar
Robert T. McGibbon committed
22
  - choco install -y doxygen.portable swig > null
Robert McGibbon's avatar
Robert McGibbon committed
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
# Download OpenCL Headers and build the ICD loader
  - ps: $opencl_registry = "https://www.khronos.org/registry/cl"
  - ps: mkdir C:/opencl > $null
  - ps: cd C:/opencl
  - ps: wget $opencl_registry/specs/opencl-icd-1.2.11.0.tgz -OutFile opencl-icd-1.2.11.0.tgz
  - ps: 7z x opencl-icd-1.2.11.0.tgz > $null
  - ps: 7z x opencl-icd-1.2.11.0.tar > $null
  - ps: mv .\icd\* .
  - ps: mkdir inc/CL > $null
  - ps: wget $opencl_registry/api/1.2/ | select -ExpandProperty links | where {$_.href -like "*.h*"} | select -ExpandProperty outerText | foreach{ wget $opencl_registry/api/1.2/$_ -OutFile inc/CL/$_ }
  - ps: mkdir lib > $null
  - ps: cd lib
  - cmake -G "NMake Makefiles" ..
  - nmake
  - cd %APPVEYOR_BUILD_FOLDER%

build_script:
  - ps: $env:CMAKE_FLAGS =
      "-DOPENMM_BUILD_PME_PLUGIN=ON
       -DOPENCL_INCLUDE_DIR=C:/opencl/inc
       -DOPENCL_LIBRARY=C:/opencl/lib/OpenCL.lib
       -DFFTW_LIBRARY=C:/fftw/libfftw3f-3.lib
       -DFFTW_INCLUDES=C:/fftw
       -DOPENMM_BUILD_EXAMPLES=OFF
       -DOPENMM_BUILD_OPENCL_TESTS=OFF
       -DCMAKE_BUILD_TYPE=Release
       -LA"
Robert McGibbon's avatar
Robert McGibbon committed
51
52
  - mkdir build
  - cd build
53
  - cmake -G "NMake Makefiles" %CMAKE_FLAGS% -LA -DCMAKE_CXX_FLAGS_RELEASE="/MD /Od /Ob0 /D NDEBUG" ..
Robert McGibbon's avatar
No jom  
Robert McGibbon committed
54
55
  - cmake --build . --target install
  - cmake --build . --target PythonInstall
56
  - cd %APPVEYOR_BUILD_FOLDER%
Robert McGibbon's avatar
No jom  
Robert McGibbon committed
57

Robert McGibbon's avatar
Robert McGibbon committed
58
test_script:
59
  - python devtools\run-ctest.py
Robert McGibbon's avatar
Robert McGibbon committed
60
  - cd python\tests
61
  - py.test -v