Skip to content

Commit

Permalink
Limit the automation run in Travis (Azure#5005)
Browse files Browse the repository at this point in the history
* Limit the automation run in Travis

* Fix azureProfile.json creation failure
  • Loading branch information
troydai authored Nov 30, 2017
1 parent 9e8386b commit f8a866f
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
37 changes: 37 additions & 0 deletions scripts/ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,43 @@ setup(
EOL

for name in $(ls src/command_modules | grep azure-cli-); do
if [ "$name" == "azure-cli-acr" ]; then continue; fi
if [ "$name" == "azure-cli-acs" ]; then continue; fi
if [ "$name" == "azure-cli-advisor" ]; then continue; fi
if [ "$name" == "azure-cli-appservice" ]; then continue; fi
if [ "$name" == "azure-cli-backup" ]; then continue; fi
if [ "$name" == "azure-cli-batch" ]; then continue; fi
if [ "$name" == "azure-cli-batchai" ]; then continue; fi
# if [ "$name" == "azure-cli-billing" ]; then continue; fi
# if [ "$name" == "azure-cli-cdn" ]; then continue; fi
# if [ "$name" == "azure-cli-cloud" ]; then continue; fi
if [ "$name" == "azure-cli-cognitiveservices" ]; then continue; fi
# if [ "$name" == "azure-cli-configure" ]; then continue; fi
if [ "$name" == "azure-cli-consumption" ]; then continue; fi
if [ "$name" == "azure-cli-container" ]; then continue; fi
if [ "$name" == "azure-cli-cosmosdb" ]; then continue; fi
if [ "$name" == "azure-cli-dla" ]; then continue; fi
if [ "$name" == "azure-cli-dls" ]; then continue; fi
if [ "$name" == "azure-cli-eventgrid" ]; then continue; fi
# if [ "$name" == "azure-cli-extension" ]; then continue; fi
# if [ "$name" == "azure-cli-feedback" ]; then continue; fi
# if [ "$name" == "azure-cli-find" ]; then continue; fi
# if [ "$name" == "azure-cli-interactive" ]; then continue; fi
if [ "$name" == "azure-cli-iot" ]; then continue; fi
if [ "$name" == "azure-cli-keyvault" ]; then continue; fi
if [ "$name" == "azure-cli-lab" ]; then continue; fi
if [ "$name" == "azure-cli-monitor" ]; then continue; fi
# if [ "$name" == "azure-cli-network" ]; then continue; fi
if [ "$name" == "azure-cli-profile" ]; then continue; fi
if [ "$name" == "azure-cli-rdbms" ]; then continue; fi
# if [ "$name" == "azure-cli-redis" ]; then continue; fi
if [ "$name" == "azure-cli-reservations" ]; then continue; fi
# if [ "$name" == "azure-cli-resource" ]; then continue; fi
# if [ "$name" == "azure-cli-role" ]; then continue; fi
if [ "$name" == "azure-cli-servicefabric" ]; then continue; fi
if [ "$name" == "azure-cli-sql" ]; then continue; fi
if [ "$name" == "azure-cli-storage" ]; then continue; fi
if [ "$name" == "azure-cli-vm" ] ; then continue; fi
module_name=${name##azure-cli-}
if [ -d src/command_modules/$name/azure/cli/command_modules/$module_name/tests ]; then
echo " 'azure.cli.command_modules.$module_name.tests'," >>$testsrc_dir/setup.py
Expand Down
2 changes: 2 additions & 0 deletions src/azure-cli-core/azure/cli/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def __init__(self, **kwargs):
self.data['query_active'] = False

azure_folder = self.config.config_dir
if not os.path.exists(azure_folder):
os.mkdir(azure_folder)
ACCOUNT.load(os.path.join(azure_folder, 'azureProfile.json'))
CONFIG.load(os.path.join(azure_folder, 'az.json'))
SESSION.load(os.path.join(azure_folder, 'az.sess'), max_age=3600)
Expand Down

0 comments on commit f8a866f

Please sign in to comment.