From 5fb16b5bfa23c485119fee5cd1af8bf6d6779650 Mon Sep 17 00:00:00 2001 From: "Dr. Chat" Date: Fri, 17 Feb 2017 23:50:55 -0600 Subject: [PATCH] Travis: Build in release/debug --- .travis.yml | 14 +++++++------- xenia-build | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 94afc18d1..2cf228bc7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,13 +14,13 @@ os: env: - LINT=true - - BUILD=true CONFIG=debug - - BUILD=true CONFIG=release + - BUILD=true CONFIG=Debug + - BUILD=true CONFIG=Release matrix: allow_failures: # LLVMGold.so is not installed correctly - - env: CONFIG=release + - env: BUILD=true CONFIG=Release dist: trusty sudo: required @@ -54,11 +54,11 @@ script: - if [[ $LINT == true ]]; then ./xenia-build lint --all; fi # Build and run our simple hello world test. - - if [[ $BUILD == true ]]; then ./xenia-build build --config=debug --target=xenia-base-tests; fi - - if [[ $BUILD == true ]]; then ./build/bin/Linux/Debug/xenia-base-tests; fi + - if [[ $BUILD == true ]]; then ./xenia-build build --config=$CONFIG --target=xenia-base-tests; fi + - if [[ $BUILD == true ]]; then ./build/bin/Linux/$CONFIG/xenia-base-tests; fi # Build and run ppc tests - - if [[ $BUILD == true ]]; then ./xenia-build build --config=debug --target=xenia-cpu-ppc-tests; fi - # - if [[ $BUILD == true ]]; then ./build/bin/Linux/Debug/xenia-cpu-ppc-tests --log_file=stdout; fi + - if [[ $BUILD == true ]]; then ./xenia-build build --config=$CONFIG --target=xenia-cpu-ppc-tests; fi + # - if [[ $BUILD == true ]]; then ./build/bin/Linux/$CONFIG/xenia-cpu-ppc-tests --log_file=stdout; fi # TODO(DrChat): Enable builds in the future. # Build all of xenia. diff --git a/xenia-build b/xenia-build index c71934311..f1415195e 100755 --- a/xenia-build +++ b/xenia-build @@ -559,7 +559,7 @@ class BaseBuildCommand(Command): *args, **kwargs) self.parser.add_argument( '--config', choices=['checked', 'debug', 'release'], default='debug', - help='Chooses the build configuration.') + type=str.lower, help='Chooses the build configuration.') self.parser.add_argument( '--target', action='append', default=[], help='Builds only the given target(s).')