-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4348 from NREL/EnableCIPackaging
Enable packaging flags
- Loading branch information
Showing
5 changed files
with
49 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
compilers: | ||
- name: "gcc" | ||
version: "4.8" | ||
cmake_extra_flags: -DBUILD_TESTING:BOOL=ON | ||
cmake_extra_flags: -DBUILD_TESTING:BOOL=ON -DBUILD_PACKAGE:BOOL=ON | ||
- name: cppcheck | ||
compiler_extra_flags: --enable=warning --suppress="*:*gtest*" --suppress="constStatement:*Objex*" --suppress="cppcheckError:*" --suppres="uninitvar:*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
compilers: | ||
- name: clang | ||
cmake_extra_flags: -DBUILD_TESTING:BOOL=ON | ||
cmake_extra_flags: -DBUILD_TESTING:BOOL=ON -DBUILD_PACKAGE:BOOL=ON | ||
- name: clang | ||
build_type: Debug | ||
cmake_extra_flags: -DBUILD_TESTING:BOOL=ON | ||
cmake_extra_flags: -DBUILD_TESTING:BOOL=ON -DBUILD_PACKAGE:BOOL=ON | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
compilers: | ||
- name: Visual Studio | ||
version: 12 | ||
cmake_extra_flags: -DBUILD_TESTING:BOOL=ON | ||
cmake_extra_flags: -DBUILD_TESTING:BOOL=ON -DBUILD_PACKAGE:BOOL=ON | ||
- name: Visual Studio | ||
version: 12 | ||
architecture: Win64 | ||
cmake_extra_flags: -DBUILD_TESTING:BOOL=ON | ||
cmake_extra_flags: -DBUILD_TESTING:BOOL=ON -DBUILD_PACKAGE:BOOL=ON | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,28 @@ set( CMAKE_VERSION_MAJOR 8 ) | |
set( CMAKE_VERSION_MINOR 2 ) | ||
set( CMAKE_VERSION_PATCH 0 ) | ||
|
||
set( CMAKE_VERSION_BUILD "Unknown" CACHE STRING "Build number" ) | ||
find_package(Git) | ||
if(GIT_FOUND) | ||
execute_process(COMMAND "${GIT_EXECUTABLE}" "rev-parse" "--short=10" "HEAD" | ||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" | ||
TIMEOUT 10 | ||
RESULT_VARIABLE RESULT | ||
OUTPUT_VARIABLE GIT_VERSION | ||
ERROR_QUIET | ||
OUTPUT_STRIP_TRAILING_WHITESPACE) | ||
if(${RESULT} EQUAL 0 AND NOT "${GIT_VERSION}" EQUAL "${CMAKE_VERSION_BUILD}") | ||
set(CMAKE_VERSION_BUILD ${GIT_VERSION} CACHE STRING "Build number" FORCE) # git sha | ||
endif() | ||
|
||
get_filename_component(GIT_DIR "${GIT_EXECUTABLE}" PATH) | ||
else() | ||
set(GIT_DIR "") | ||
endif() | ||
|
||
|
||
set(CPACK_PACKAGE_CONTACT "Kyle Benne <[email protected]>") | ||
|
||
option( BUILD_PACKAGE "Build package" OFF ) | ||
option( BUILD_TESTING "Build testing targets" OFF ) | ||
option( BUILD_FORTRAN "Build Fortran stuff" OFF ) | ||
|
@@ -52,7 +74,7 @@ install( FILES idd/Energy+.idd DESTINATION ./ ) | |
|
||
if( BUILD_PACKAGE ) | ||
set(CPACK_INSTALL_CMAKE_PROJECTS | ||
"${CMAKE_BINARY_DIR};EnergyPLus;ALL;/" | ||
"${CMAKE_BINARY_DIR};EnergyPlus;ALL;/" | ||
) | ||
|
||
if( BUILD_FORTRAN ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3ea5ad3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
develop (kbenne) - x86_64-MacOS-10.9-clang: OK (968 of 968 tests passed)
3ea5ad3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
develop (kbenne) - x86_64-MacOS-10.9-clang-Debug: OK (963 of 968 tests passed)
3ea5ad3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
develop (kbenne) - x86_64-Linux-Ubuntu-14.04-gcc-4.8: OK (968 of 968 tests passed)
3ea5ad3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
develop (kbenne) - x86_64-Linux-Ubuntu-14.04-cppcheck-1.61: OK (0 of 0 tests passed)
3ea5ad3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
develop (kbenne) - i386-Windows-7-VisualStudio-12: OK (968 of 968 tests passed)