Merge pull request #15500 from mattr1x/add-ci-build-envvar

Enable `--ci-build` setting via an environment variable
This commit is contained in:
Shannon Romano 2019-05-02 11:29:27 -07:00 committed by GitHub
commit c9f9a924d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ def parse_args():
parser.add_argument('--vcpkg-root', type=str, help='The location of the vcpkg distribution')
parser.add_argument('--build-root', required=True, type=str, help='The location of the cmake build')
parser.add_argument('--ports-path', type=str, default=defaultPortsPath)
parser.add_argument('--ci-build', action='store_true')
parser.add_argument('--ci-build', action='store_true', default=os.getenv('CI_BUILD') is not None)
if True:
args = parser.parse_args()
else: