Permalink
Browse files

#1 Use dynamic project version from Travis branch

- Replace hardcoded version in Conan recipe by
  branch name on Travis CI envs

Signed-off-by: Uilian Ries <uilianries@gmail.com>
  • Loading branch information...
uilianries committed Oct 8, 2018
1 parent 9714900 commit 65dcda473074b50e1276a0457f67f22bea8b8cc2
Showing with 10 additions and 2 deletions.
  1. +10 −1 .conan/build.py
  2. +0 −1 conanfile.py
View
@@ -4,9 +4,18 @@
from cpt.packager import ConanMultiPackager
def get_travis_branch():
return os.getenv("TRAVIS_BRANCH")
def get_reference():
return "CTRE/{}".format(get_travis_branch())
if __name__ == "__main__":
builder = ConanMultiPackager(
username="crte",
reference=get_reference(),
username="ctre",
upload="https://api.bintray.com/conan/hanickadot/ctre",
upload_only_when_stable=True,
stable_branch_pattern="v?\d+\.\d+.*",
View
@@ -5,7 +5,6 @@
class CtreConan(ConanFile):
name = "CTRE"
version = "2.1"
license = "MIT"
url = "https://github.com/hanickadot/compile-time-regular-expressions"
author = "Hana Dusíková (ctre@hanicka.net)"

0 comments on commit 65dcda4

Please sign in to comment.