Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
fcdef9fc
Commit
fcdef9fc
authored
6 years ago
by
Pospelov, Gennady
Browse files
Options
Downloads
Plain Diff
Merge branch 'Appveyor2' into develop
parents
66d70792
c2c0a29d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.appveyor.yml
+29
-13
29 additions, 13 deletions
.appveyor.yml
cmake/generic/modules/PreventInSourceBuilds.cmake
+1
-1
1 addition, 1 deletion
cmake/generic/modules/PreventInSourceBuilds.cmake
with
30 additions
and
14 deletions
.appveyor.yml
+
29
−
13
View file @
fcdef9fc
image
:
Previous
Visual Studio
2017
image
:
Visual Studio
2017
matrix
:
fast_finish
:
true
...
...
@@ -8,35 +8,46 @@ platform:
# http://www.appveyor.com/docs/installed-software
environment
:
QTDIR
:
"
C:
\\
Qt
\\
5.9
\\
msvc2017_64"
MYCONDA
:
"
C:
\\
Miniconda3-x64;C:
\\
Miniconda3-x64
\\
Scripts;C:
\\
Miniconda3-x64
\\
Library
\\
bin"
PATH
:
"
%QTDIR%
\\
bin;C:
\\
opt
\\
local_x64
\\
lib;%MYCONDA%;%PATH%"
PYTHONPATH
:
"
C:
\\
Miniconda3-x64;C:
\\
Miniconda3-x64
\\
Lib;C:
\\
Miniconda3-x64
\\
Lib
\\
site-packages;C:
\\
Miniconda3-x64
\\
DLLs"
APPVEYOR_RDP_PASSWORD
:
7bKajQWvq4uhfpvc!
BOOSTDIR
:
C:\Libraries\boost_1_67_0
PYTHONDIR
:
C:\Python36-x64
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
:
parallel
:
true
init
:
-
echo "BornAgain init"
-
echo "BornAgain init"
%CD%
-
echo %PATH%
install
:
-
cmd
:
git submodule -q update --init
-
git submodule -q update --init
before_build
:
-
echo "BornAgain before_build"
-
echo %PATH%
-
echo "BornAgain before_build"
%CD%
-
python -m pip install --upgrade pip
-
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
-
7z x %temp%\local_x64.zip -oC:\opt >
null
-
mkdir C:\projects\deps
-
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
:
-
echo "BornAgain build_script" %CD%
-
echo %PATH%
-
mkdir 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
test_script
:
-
echo "BornAgain test_script"
-
echo "BornAgain test_script"
%CD%
-
echo %PATH%
-
echo %PYTHONPATH%
-
echo %PYTHONHOME%
...
...
@@ -50,3 +61,8 @@ test_script:
throw "tests failed"
}
on_failure
:
-
ps
:
$blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
-
appveyor PushArtifact Testing/Temporary/LastTest.log
This diff is collapsed.
Click to expand it.
cmake/generic/modules/PreventInSourceBuilds.cmake
+
1
−
1
View file @
fcdef9fc
...
...
@@ -6,7 +6,7 @@ function(prevent_in_source_builds)
get_filename_component
(
bindir
"
${
CMAKE_BINARY_DIR
}
"
REALPATH
)
# disallow in-source builds
if
(
"
${
srcdir
}
"
STREQUAL
"
${
bindir
}
"
)
if
(
srcdir STREQUAL bindir
)
message
(
FATAL_ERROR
"\
CMake must not to be run in the source directory. \
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment