appveyor.yml 1.72 KB
Newer Older
Robert McGibbon's avatar
Robert McGibbon committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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%"
  - pip install nose

# 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 McGibbon's avatar
Robert McGibbon committed
23
  - choco install -y doxygen.portable swig
Robert McGibbon's avatar
Robert McGibbon committed
24
25

# Set CMake options
Robert T. McGibbon's avatar
Robert T. McGibbon committed
26
  - ps: $env:CMAKE_FLAGS='-DOPENMM_BUILD_PME_PLUGIN=ON -DFFTW_LIBRARY=C:/fftw/libfftw3f-3.lib -DFFTW_INCLUDES=C:/fftw -DCMAKE_BUILD_TYPE=Release -DOPENMM_BUILD_EXAMPLES=OFF -DCMAKE_CXX_FLAGS_RELEASE="/MD /Od /Ob0 /D NDEBUG"'
Robert McGibbon's avatar
Robert McGibbon committed
27
28
  - mkdir build
  - cd build
Robert McGibbon's avatar
Robert McGibbon committed
29
  - cmake -G "NMake Makefiles" %CMAKE_FLAGS% -LA ..
Robert McGibbon's avatar
Robert McGibbon committed
30
31

# Run the build
Robert McGibbon's avatar
No jom  
Robert McGibbon committed
32
33
34
  - cmake --build . --target install
  - cmake --build . --target PythonInstall

Robert McGibbon's avatar
Robert McGibbon committed
35
36
build: false
test_script:
37
38
  - ctest || exit 0
  - python -c "import os; fn = os.path.join('Testing', 'Temporary', 'LastTestsFailed.log'); os.path.exists(fn) or exit(0); failed = [line.split(':')[0] for line in open(fn)]; print(','.join(x+','+x for x in failed))" > FailedTests.log
Robert McGibbon's avatar
Robert McGibbon committed
39
  - ps: >
40
41
42
43
     If (Test-Path "Testing\\Temporary\\LastTestsFailed.log") {
         cat Testing\\Temporary\\LastTestsFailed.log
         cat FailedTests.log
         ctest -I FailedTests.log
Robert McGibbon's avatar
Robert McGibbon committed
44
     }
Robert McGibbon's avatar
Robert McGibbon committed
45
46
  - cd python\tests
  - nosetests -vv --processes=-1 --process-timeout=200
Robert McGibbon's avatar
Robert McGibbon committed
47
  - cd %APPVEYOR_BUILD_FOLDER%