Skip to content
Snippets Groups Projects
Commit 26cbc356 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Merge remote-tracking branch 'upstream/develop' into Rpath

parents f141e915 3ea5c3b7
No related branches found
No related tags found
No related merge requests found
image: Previous Visual Studio 2017 image: Visual Studio 2017
matrix: matrix:
fast_finish: true fast_finish: true
...@@ -8,35 +8,46 @@ platform: ...@@ -8,35 +8,46 @@ platform:
# http://www.appveyor.com/docs/installed-software # http://www.appveyor.com/docs/installed-software
environment: environment:
QTDIR: "C:\\Qt\\5.9\\msvc2017_64" APPVEYOR_RDP_PASSWORD: 7bKajQWvq4uhfpvc!
MYCONDA: "C:\\Miniconda3-x64;C:\\Miniconda3-x64\\Scripts;C:\\Miniconda3-x64\\Library\\bin" BOOSTDIR: C:\Libraries\boost_1_67_0
PATH: "%QTDIR%\\bin;C:\\opt\\local_x64\\lib;%MYCONDA%;%PATH%" PYTHONDIR: C:\Python36-x64
PYTHONPATH: "C:\\Miniconda3-x64;C:\\Miniconda3-x64\\Lib;C:\\Miniconda3-x64\\Lib\\site-packages;C:\\Miniconda3-x64\\DLLs" QTDIR: "C:\\Qt\\5.11\\msvc2017_64"
PATH: "%QTDIR%\\bin;%PYTHONDIR%;%PYTHONDIR%\\Scripts;%BOOSTDIR%\\lib64-msvc-14.1;%PATH%"
PYTHONPATH: "%PYTHONDIR%;%PYTHONDIR%\\Lib;%PYTHONDIR%\\Lib\\site-packages;%PYTHONDIR%\\DLLs"
build: build:
parallel: true parallel: true
init: init:
- echo "BornAgain init" - echo "BornAgain init" %CD%
- echo %PATH% - echo %PATH%
install: install:
- cmd: git submodule -q update --init - git submodule -q update --init
before_build: before_build:
- echo "BornAgain before_build" - echo "BornAgain before_build" %CD%
- echo %PATH% - python -m pip install --upgrade pip
- python -m pip install numpy - python -m pip install numpy
- C:\cygwin\bin\wget -q http://apps.jcns.fz-juelich.de/redmine/attachments/download/348/local_x64.zip -O %temp%\local_x64.zip - mkdir C:\projects\deps
- 7z x %temp%\local_x64.zip -oC:\opt > null - C:\cygwin\bin\wget -q http://apps.jcns.fz-juelich.de/redmine/attachments/download/456/bornagaindeps_v1.zip -O %temp%\bornagaindeps.zip
- 7z x %temp%\bornagaindeps.zip -oC:\projects\deps > null
- set CMAKE_URL="https://cmake.org/files/v3.12/cmake-3.12.4-win64-x64.zip"
- appveyor DownloadFile %CMAKE_URL% -FileName %temp%\cmake.zip
- 7z x %temp%\cmake.zip -oC:\projects\deps > nul
- move C:\projects\deps\cmake-* C:\projects\deps\cmake # Move to a version-agnostic directory
- set PATH=C:\projects\deps\bornagaindeps\lib;C:\projects\deps\cmake\bin;%PATH%
build_script: build_script:
- echo "BornAgain build_script" %CD%
- echo %PATH%
- mkdir build - mkdir build
- cd build - cd build
- cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_INCLUDE_PATH=C:/opt/local_x64/include .. - cmake --version
- cmake -G "Visual Studio 15 2017 Win64" -DBOOST_ROOT=%BOOSTDIR% -DCMAKE_INCLUDE_PATH=C:/projects/deps/bornagaindeps/include ..
- cmake --build . --config Release - cmake --build . --config Release
test_script: test_script:
- echo "BornAgain test_script" - echo "BornAgain test_script" %CD%
- echo %PATH% - echo %PATH%
- echo %PYTHONPATH% - echo %PYTHONPATH%
- echo %PYTHONHOME% - echo %PYTHONHOME%
...@@ -50,3 +61,8 @@ test_script: ...@@ -50,3 +61,8 @@ test_script:
throw "tests failed" throw "tests failed"
} }
on_failure:
- appveyor PushArtifact Testing/Temporary/LastTest.log
#- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
...@@ -6,7 +6,7 @@ function(prevent_in_source_builds) ...@@ -6,7 +6,7 @@ function(prevent_in_source_builds)
get_filename_component(bindir "${CMAKE_BINARY_DIR}" REALPATH) get_filename_component(bindir "${CMAKE_BINARY_DIR}" REALPATH)
# disallow in-source builds # disallow in-source builds
if("${srcdir}" STREQUAL "${bindir}") if(srcdir STREQUAL bindir)
message(FATAL_ERROR "\ message(FATAL_ERROR "\
CMake must not to be run in the source directory. \ CMake must not to be run in the source directory. \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment