Include git commit in conan version
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
f975722cd4
commit
9b198e67a7
|
@ -1,9 +1,8 @@
|
||||||
from conans import ConanFile, CMake
|
from conans import ConanFile, CMake, tools
|
||||||
|
|
||||||
|
|
||||||
class HelloConan(ConanFile):
|
class HelloConan(ConanFile):
|
||||||
name = "CreatureLib"
|
name = "CreatureLib"
|
||||||
version = "0.1"
|
|
||||||
license = "TODO"
|
license = "TODO"
|
||||||
url = "https://git.p-epsilon.com/Deukhoofd/CreatureLib"
|
url = "https://git.p-epsilon.com/Deukhoofd/CreatureLib"
|
||||||
description = "The core implementation for turn based battling using creatures."
|
description = "The core implementation for turn based battling using creatures."
|
||||||
|
@ -13,6 +12,10 @@ class HelloConan(ConanFile):
|
||||||
generators = "cmake"
|
generators = "cmake"
|
||||||
exports_sources = "*"
|
exports_sources = "*"
|
||||||
|
|
||||||
|
def set_version(self):
|
||||||
|
git = tools.Git(folder=self.recipe_folder)
|
||||||
|
self.version = "%s_%s" % (git.get_branch(), git.get_revision())
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
cmake = CMake(self)
|
cmake = CMake(self)
|
||||||
cmake.configure(source_folder=".")
|
cmake.configure(source_folder=".")
|
||||||
|
|
Loading…
Reference in New Issue