From bb5c73ae08839a940b5e492f51a0de774c62963d Mon Sep 17 00:00:00 2001 From: Ralph Lange Date: Thu, 28 May 2020 18:18:36 +0200 Subject: [PATCH] travis: BCFG for build configuration (static/debug) --- cue.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/cue.py b/cue.py index 9bd57f3..fc53469 100644 --- a/cue.py +++ b/cue.py @@ -1,5 +1,5 @@ #!/usr/bin/env python -"""CI build script +"""CI build script for Linux/MacOS/Windows on Travis/AppVeyor """ from __future__ import print_function @@ -33,10 +33,11 @@ if 'TRAVIS' in os.environ: if re.match(r'^vs', ci_compiler): # Only Visual Studio 2017 available ci_compiler = 'vs2017' - if 'STATIC' in os.environ and os.environ['STATIC'].lower() == 'yes': - ci_static = True - if 'DEBUG' in os.environ and os.environ['DEBUG'].lower() == 'yes': - ci_debug = True + if 'BCFG' in os.environ: + if re.search('static', os.environ['BCFG']): + ci_static = True + if re.search('debug', os.environ['BCFG']): + ci_debug = True if 'APPVEYOR' in os.environ: ci_service = 'appveyor'