iotedgedev/build.sh

151 строка
3.9 KiB
Bash
Исходник Обычный вид История

Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
#!/bin/bash
# stop on error
set -e
function show_help
{
echo "Usage:"
2018-08-24 11:03:26 +03:00
echo "build.sh local|test|prod none|minor|major imagename [windows|linux]"
echo "local: don't upload to pypi, test: uses pypitest, prod: uses pypi"
2018-08-24 11:03:26 +03:00
echo "none: don't bumpversion, minor: bumpversion minor --no-commit --no-tag, major: bumpversion major"
2018-09-17 10:08:27 +03:00
echo "imagename: localhost:5000/iotedgedev, jongacr.azurecr.io/iotedgedev, microsoft/iotedgedev"
echo "windows: builds only windows container, linux: builds only linux container. omit to build both."
echo "NOTES: 1. You must have .pypirc in repo root with pypi and pypitest sections. 2. You must have .env file in root with connection strings set."
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
exit 1
}
MODE="$1"
VERSION_BUMP="$2"
IMAGE_NAME="$3"
PLATFORM="$4"
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
if [ -z "$MODE" ] || [ -z "$VERSION_BUMP" ] || [ -z "$IMAGE_NAME" ]; then
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
show_help
fi
echo -e "\n===== Setting up build environment"
if [ "$MODE" = "local" ]; then
echo "Environment: $MODE"
2018-08-24 11:03:26 +03:00
elif [ "$MODE" = "test" ]; then
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
echo "Environment: $MODE"
elif [ "$MODE" = "prod" ]; then
echo "Environment: $MODE"
else
echo "ERROR> Build mode parameter not known. must be 'local', 'prod' or 'test'"
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
exit 1
fi
if [ ! -z $PLATFORM ]; then
echo "Platform: $PLATFORM"
fi
if [ "$OSTYPE" = "msys" ]; then
echo -e "\n===== Checking pre-requisistes"
IS_ADMIN=$(powershell '([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")')
if [ "$IS_ADMIN" = "False" ]; then
echo "ERROR> Build script must be run as administrator"
exit 1
fi
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
fi
#TODO
# check if running in administrator mode
# make sure docker is in linux mode
# make sure docker supports manifest option
# stop and restart docker to make sure to avoid networking problem?
# check that dockerhub exists and is accessible
# check that pipy repo exists and is accessible
# make sure there are no pending changes in GIT otherwise bumpversion will complain
function run_tox {
echo -e "\n===== Preventive cleanup"
rm __pycache__ -rf
rm .pytest_cache -rf
rm .tox -rf
rm .pytest_cache -rf
rm tests/__pycache__ -rf
echo -e "\n===== Running Tox"
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
tox
}
function get_version
{
VERSION=$(cat ./iotedgedev/__init__.py | grep '__version__' | grep -oP "'\K[^']+")
echo ${VERSION}
}
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
function run_bumpversion {
if [ "$VERSION_BUMP" = "none" ]; then
return
fi
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
echo -e "\n===== Bumping version"
if [ "$MODE" = "prod" ]; then
bumpversion $VERSION_BUMP
else
bumpversion $VERSION_BUMP --no-commit --no-tag --allow-dirty
fi
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
}
function run_build_wheel
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
{
echo -e "\n===== Building Python Wheel"
python setup.py bdist_wheel
}
function run_upload_pypi
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
{
if [ "$MODE" != "local" ]; then
echo -e "\n===== Uploading to PyPi"
PYPI=$([ "$MODE" = "prod" ] && echo "pypi" || echo "pypitest")
twine upload -r ${PYPI} --config-file .pypirc dist/iotedgedev-$(get_version)-py2.py3-none-any.whl
fi
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
}
function run_build_docker
{
echo -e "\n===== Building Docker Containers"
./docker/tool/build-docker.sh $IMAGE_NAME $PLATFORM
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
}
function run_push_docker
{
echo -e "\n===== Pushing Docker Containers"
./docker/tool/push-docker.sh $IMAGE_NAME $PLATFORM
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
}
function run_push_git
{
if [ "$MODE" = "prod" ]; then
2018-09-17 10:08:27 +03:00
echo 'Resetting __init__ file'
git checkout ./iotedgedev/__init__.py
echo -e "\n===== Pushing Tags to Git"
git push --tags && git push
fi
}
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
2018-09-17 10:08:27 +03:00
function set_analytics_key
{
if [[ ${AIKEY//-/} =~ ^[[:xdigit:]]{32}$ ]]; then
echo 'Found AIKEY environment variable. Replacing __AIkey__'
sed -i "/__AIkey__/c __AIkey__ = '${AIKEY}'" ./iotedgedev/__init__.py
fi
}
set_analytics_key
run_bumpversion
run_tox
run_build_wheel
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
run_build_docker
run_upload_pypi
run_push_docker
run_push_git
Added support for windows containers via nanoserver (#158) * added initial support for windows containers * initial support for nanoserver * corrected az cli path * only az not working * all dependencies correctly working * added required pip packages * removed unneeded file * removed external dependencies * completed support for nanoserver * fixed all issued mentioned in PR comments * installing both python2 and python3 on nanoserver * set path to point to python3, since python2 is not working yet * added missing parenthesis * set python3 as default python * mapped folder set automatically * improved build script * added setuptools install * set to use latest tag * added support for powershell script * automatically map folder * added sock mapping * removed pip from requirements since it may generate errors * ignored .backup files * fixed spacings * install modules locally * fixed bug the prevented arguments to be handled correctly * fixed bug the prevented arguments to be handled correctly * added build script alpha version * comments cleanup * build will now also push docker images * Bump version: 0.86.0 → 0.87.0 * version set back to 0.81.0 * fixed some bugs, added parameter for pipy login * modularized build script * fixed syntax * removed renaming of python3 executables * switch to docker folder if needed * exit on error * correctly handled directory switching * switched to ubuntu 18.04 for python 3.6 default support * using double slash to make script work * improved docker image build performances * file system cleanup * added platform parameter
2018-08-11 00:29:44 +03:00
echo -e "\n===== All done"