Travis: Build in release/debug
This commit is contained in:
parent
2dc1530fdd
commit
5fb16b5bfa
14
.travis.yml
14
.travis.yml
|
@ -14,13 +14,13 @@ os:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- LINT=true
|
- LINT=true
|
||||||
- BUILD=true CONFIG=debug
|
- BUILD=true CONFIG=Debug
|
||||||
- BUILD=true CONFIG=release
|
- BUILD=true CONFIG=Release
|
||||||
|
|
||||||
matrix:
|
matrix:
|
||||||
allow_failures:
|
allow_failures:
|
||||||
# LLVMGold.so is not installed correctly
|
# LLVMGold.so is not installed correctly
|
||||||
- env: CONFIG=release
|
- env: BUILD=true CONFIG=Release
|
||||||
|
|
||||||
dist: trusty
|
dist: trusty
|
||||||
sudo: required
|
sudo: required
|
||||||
|
@ -54,11 +54,11 @@ script:
|
||||||
- if [[ $LINT == true ]]; then ./xenia-build lint --all; fi
|
- if [[ $LINT == true ]]; then ./xenia-build lint --all; fi
|
||||||
|
|
||||||
# Build and run our simple hello world test.
|
# 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 ./xenia-build build --config=$CONFIG --target=xenia-base-tests; fi
|
||||||
- if [[ $BUILD == true ]]; then ./build/bin/Linux/Debug/xenia-base-tests; fi
|
- if [[ $BUILD == true ]]; then ./build/bin/Linux/$CONFIG/xenia-base-tests; fi
|
||||||
# Build and run ppc tests
|
# Build and run ppc tests
|
||||||
- if [[ $BUILD == true ]]; then ./xenia-build build --config=debug --target=xenia-cpu-ppc-tests; fi
|
- if [[ $BUILD == true ]]; then ./xenia-build build --config=$CONFIG --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 ./build/bin/Linux/$CONFIG/xenia-cpu-ppc-tests --log_file=stdout; fi
|
||||||
|
|
||||||
# TODO(DrChat): Enable builds in the future.
|
# TODO(DrChat): Enable builds in the future.
|
||||||
# Build all of xenia.
|
# Build all of xenia.
|
||||||
|
|
|
@ -559,7 +559,7 @@ class BaseBuildCommand(Command):
|
||||||
*args, **kwargs)
|
*args, **kwargs)
|
||||||
self.parser.add_argument(
|
self.parser.add_argument(
|
||||||
'--config', choices=['checked', 'debug', 'release'], default='debug',
|
'--config', choices=['checked', 'debug', 'release'], default='debug',
|
||||||
help='Chooses the build configuration.')
|
type=str.lower, help='Chooses the build configuration.')
|
||||||
self.parser.add_argument(
|
self.parser.add_argument(
|
||||||
'--target', action='append', default=[],
|
'--target', action='append', default=[],
|
||||||
help='Builds only the given target(s).')
|
help='Builds only the given target(s).')
|
||||||
|
|
Loading…
Reference in New Issue