Skip to content

Commit

Permalink
Merge pull request #2864 from STEllAR-GROUP/appveyor-artifact
Browse files Browse the repository at this point in the history
Create redistribution archive for successful builds
  • Loading branch information
sithhell committed Aug 29, 2017
2 parents 48d2b38 + 023f38f commit 6cef4d0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
21 changes: 20 additions & 1 deletion appveyor.yml
Expand Up @@ -9,8 +9,10 @@ environment:
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015
MSVC_GENERATOR: Visual Studio 14 2015
MSVC_GENERATOR_SHORT: VS2015
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
MSVC_GENERATOR: Visual Studio 15 2017
MSVC_GENERATOR_SHORT: VS2017

configuration:
- Debug
Expand All @@ -33,11 +35,28 @@ before_build:

build_script:
- cmd: cmake --build build --config %CONFIGURATION% --target core -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal /maxcpucount:2 /nologo
- cmd: |
7z a "hpx-master-redist-%MSVC_GENERATOR_SHORT%-%CONFIGURATION%.7z" -y "build\Debug\bin\*.dll" "build\Debug\bin\hpx\*.dll" "build\Debug\bin\*.pdb" "build\Debug\bin\hpx\*.pdb" >NUL
7z a "hpx-master-redist-%MSVC_GENERATOR_SHORT%-%CONFIGURATION%.7z" -y "build\Debug\lib\*.lib" "build\Debug\lib\hpx\*.lib" "build\src\hpx_init.dir\Debug\hpx_init.pdb" >NUL
7z a "hpx-master-redist-%MSVC_GENERATOR_SHORT%-%CONFIGURATION%.7z" -y "build\lib\cmake\HPX\*.cmake" "build\hpx\config\*.hpp" "build\hpx\runtime\parcelset\*.hpp" "hpx" "cmake\*.cmake" >NUL
- cmd: cmake --build build --config %CONFIGURATION% --target examples -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal /maxcpucount:2 /nologo
# - cmd: cmake --build build --config %CONFIGURATION% --target tests/regressions -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /verbosity:minimal /maxcpucount:2 /nologo

test_script:
- cmd: |
set PATH=%PATH%;C:\projects\vcpkg\installed\x64-windows\debug\bin
python build\bin\hpxrun.py -l2 -t2 build\Debug\bin\hello_world.exe -- --hpx:bind=none
artifacts:
- path: hpx-master-redist-$(MSVC_GENERATOR_SHORT)-$(configuration).7z
name: hpx-master-redist-$(MSVC_GENERATOR_SHORT)-$(configuration)

deploy:
provider: FTP
on:
branch: master
protocol: ftp
host: ftp.stellar-group.org
username: appveyor-ci@stellar-group.org
password:
secure: tsfxuDuvSntD/aqRcuxSvkU4lqQck85OI7e7nhDhIr4=
beta: true
1 change: 1 addition & 0 deletions cmake/templates/HPXConfig.cmake.in
Expand Up @@ -19,6 +19,7 @@ set(HPX_INCLUDE_DIRS "@HPX_CMAKE_CONF_INCLUDE_DIRS@")
set(HPX_LIBRARIES "@HPX_CONF_LIBRARIES@")
set(HPX_LIBRARY_DIR "@HPX_CONF_LIBRARY_DIR@")

set(HPX_VERSION_STRING "@HPX_VERSION@")
set(HPX_MAJOR_VERSION @HPX_MAJOR_VERSION@)
set(HPX_MINOR_VERSION @HPX_MINOR_VERSION@)
set(HPX_PATCH_LEVEL @HPX_PATCH_LEVEL@)
Expand Down

0 comments on commit 6cef4d0

Please sign in to comment.