39 строки
1.1 KiB
Bash
Executable File
39 строки
1.1 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# --------------------------------------------------------------------------------------------
|
|
# Copyright (c) Microsoft Corporation. All rights reserved.
|
|
# Licensed under the MIT License. See License.txt in the project root for license information.
|
|
# --------------------------------------------------------------------------------------------
|
|
|
|
set -e
|
|
|
|
scripts_root=$(cd $(dirname $0); pwd)
|
|
|
|
export PYTHONPATH=$PATHONPATH:./src
|
|
python -m azure.cli --version
|
|
python -m azure.cli -h --debug
|
|
python -m azure.cli batch -h --debug
|
|
az --version
|
|
pip freeze
|
|
python -m azure.cli batch job create -h --debug
|
|
|
|
# Check readme formatting for PyPI
|
|
python ./setup.py check -r -s
|
|
|
|
# PyLint crashes on Python 3.6
|
|
LOCAL_PYTHON_VERSION=$(python -c 'import sys; print("{0}.{1}".format(sys.version_info[0], sys.version_info[1]))')
|
|
if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" || "$LOCAL_PYTHON_VERSION" == "3.6" ]]; then
|
|
echo 'Skipping check_style since it is not supported in python 3.6'
|
|
else
|
|
check_style --ci;
|
|
fi
|
|
|
|
|
|
run_tests
|
|
|
|
if [[ "$CI" == "true" ]]; then
|
|
$scripts_root/package_verify.sh
|
|
fi
|
|
|
|
python $scripts_root/license/verify.py
|