Skip to content
This repository has been archived by the owner on Mar 27, 2019. It is now read-only.

Update version info for trackable automated deployment #9

Merged
merged 3 commits into from
Apr 30, 2014

Conversation

gmarkall
Copy link
Contributor

This PR will go with a PR in OG-Maths and is for supporting trackable automated builds and deployments with the buildbot.

The version info file consists of the project name, revision, build number, and platform. This file is picked up later on by the OG-Maths build system and incorporated into the finished Jar's version info file.

Whilst working on this I noted that CheckCPUID.cmake was not detecting failed compilations, resulting in weird error messages. This is also fixed on this branch.

A buildbot pass is only sensibly possible for this work on the deploy queue, and is presently running. I will paste a link to it here once it is finished.

If the CPUID check code failed, it would generate very weird CMake
errors due to variables being unset. This change provides a more
clear error message.
@gmarkall
Copy link
Contributor Author

Here is the passed "deploy" queue build: http://devmaths-lx-1:8012/builders/deploy/builds/31

This consists of a human-suited time in the localtime field, and
one more suited to machines in the timestamp field.
@gmarkall
Copy link
Contributor Author

I've added unix timestamps and a human-readable time field to the version info. New deploy queue pass: http://devmaths-lx-1:8012/builders/deploy/builds/32

try_run(CPUID_FLAG CPUID_COMPILE_RESULT
${CMAKE_BINARY_DIR}
${CMAKE_SOURCE_DIR}/CMAKE/cmcpuid.c)

if(NOT ${CPUID_COMPILE_RESULT})
message(FATAL_ERROR "Failed to compile CPUID check binary")
endif()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@stuartarchibald
Copy link
Contributor

This does what is intended, am happy to merge.

stuartarchibald added a commit that referenced this pull request Apr 30, 2014
Update version info for trackable automated deployment
@stuartarchibald stuartarchibald merged commit a6456b4 into master Apr 30, 2014
@gmarkall gmarkall deleted the MAT-378 branch April 30, 2014 13:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants