kivy/.ci/windows_ci.ps1

115 lines
4.4 KiB
PowerShell
Raw Normal View History

function raise-only-error{
Param([scriptblock]$Func)
# powershell interprets writing to stderr as an error, so only raise error if the return code is none-zero
try {
$Func.Invoke()
} catch {
if ($LastExitCode -ne 0) {
throw $_
} else {
echo $_
}
}
}
Switch from Travis/Appveyor to GitHub Actions (#6622) * Switch Linux CI to GitHub Actions. * gst is included in ubuntu. * Detect if wheels are generated. * libtiff5 is used on bionic. * Name test ubuntu, and x11 is lowercase. * Simply workflow name. * Cleanup how we list kivy deps. * Will newer pip fix the cython issues? * Use absolute path. * Cython can't handle when parent dir is same name as project. * Fail on the first error. * Display needs to be specified globally. * Move from appveyor to GitHub Action. * Try fixing syntax error.. * Fix syntax error.. * Fix uploads. [build wheel] * Escape multiline command. [build wheel] * Cython can't handle deep dirs named kivy. [build wheel] * cmd can't have forward slash.. [build wheel] * Find the io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Use full pytest path to prevent cov issues, .ssh may not exist, catch stderr. * Try prevening pyinstaller erro not finding kivy.deps. * Try prevening pyinstaller erro not finding kivy.deps. [build wheel] * Switch to msys using choco. * Pyinstaller cannot seem to import kivy.deps. [build wheel win] * Use ubuntu key as it doesn't check IP/ * Give more time for video test. [build wheel win] * Use ssh keys directly. * clock has been removed from time. [build wheel] * Use msys path directly because ps doesn't accept args otherwise. [build wheel win] * Switch unittests from travis to GitHub actions. * Use full path. * Use full path. * Use full path. * Use full path. * Add OSX wheels. * Add osx app support [build wheel osx] [build app osx] * Seperate gst cahces because it's too big. [build wheel osx] [build app osx] * Try multiple caches. [build app osx] [build wheel osx] * Restore from cache. [build app osx] [build wheel osx] * Use gstreamer that is less than 400MB. [build app osx] [build wheel osx] * Extract platypus compressed files. [build app osx] * Restore package from cache. [build app osx] * Remove travis. [build wheel] [build app osx] * Define ref variable to use to find the branch * Don't block app creation - it hangs on the yes. [build app osx] * Disable osx app building for now * Add publishing to PyPI and de-duplicate osx/ubuntu code. [build wheel] [build app osx] * Dump context. * Add release and PR upload fixes. * Typo. * Use v1 of release action. * We are using dist, not wheelhouse. [build wheel] * Type [build wheel] * Needs sudo to remove docker generated files. [build wheel] * If we don't create dist, we don't have permissions to write in it. [build wheel] * Use PEP 508 to specify dependencies [build wheel] * Use new require tags. [build wheel]
2019-11-29 15:00:31 +00:00
function Generate-sdist {
python -m pip install cython
Switch from Travis/Appveyor to GitHub Actions (#6622) * Switch Linux CI to GitHub Actions. * gst is included in ubuntu. * Detect if wheels are generated. * libtiff5 is used on bionic. * Name test ubuntu, and x11 is lowercase. * Simply workflow name. * Cleanup how we list kivy deps. * Will newer pip fix the cython issues? * Use absolute path. * Cython can't handle when parent dir is same name as project. * Fail on the first error. * Display needs to be specified globally. * Move from appveyor to GitHub Action. * Try fixing syntax error.. * Fix syntax error.. * Fix uploads. [build wheel] * Escape multiline command. [build wheel] * Cython can't handle deep dirs named kivy. [build wheel] * cmd can't have forward slash.. [build wheel] * Find the io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Use full pytest path to prevent cov issues, .ssh may not exist, catch stderr. * Try prevening pyinstaller erro not finding kivy.deps. * Try prevening pyinstaller erro not finding kivy.deps. [build wheel] * Switch to msys using choco. * Pyinstaller cannot seem to import kivy.deps. [build wheel win] * Use ubuntu key as it doesn't check IP/ * Give more time for video test. [build wheel win] * Use ssh keys directly. * clock has been removed from time. [build wheel] * Use msys path directly because ps doesn't accept args otherwise. [build wheel win] * Switch unittests from travis to GitHub actions. * Use full path. * Use full path. * Use full path. * Use full path. * Add OSX wheels. * Add osx app support [build wheel osx] [build app osx] * Seperate gst cahces because it's too big. [build wheel osx] [build app osx] * Try multiple caches. [build app osx] [build wheel osx] * Restore from cache. [build app osx] [build wheel osx] * Use gstreamer that is less than 400MB. [build app osx] [build wheel osx] * Extract platypus compressed files. [build app osx] * Restore package from cache. [build app osx] * Remove travis. [build wheel] [build app osx] * Define ref variable to use to find the branch * Don't block app creation - it hangs on the yes. [build app osx] * Disable osx app building for now * Add publishing to PyPI and de-duplicate osx/ubuntu code. [build wheel] [build app osx] * Dump context. * Add release and PR upload fixes. * Typo. * Use v1 of release action. * We are using dist, not wheelhouse. [build wheel] * Type [build wheel] * Needs sudo to remove docker generated files. [build wheel] * If we don't create dist, we don't have permissions to write in it. [build wheel] * Use PEP 508 to specify dependencies [build wheel] * Use new require tags. [build wheel]
2019-11-29 15:00:31 +00:00
python setup.py sdist --formats=gztar
raise-only-error -Func {python setup.py bdist_wheel --build_examples --universal}
python -m pip uninstall cython -y
Switch from Travis/Appveyor to GitHub Actions (#6622) * Switch Linux CI to GitHub Actions. * gst is included in ubuntu. * Detect if wheels are generated. * libtiff5 is used on bionic. * Name test ubuntu, and x11 is lowercase. * Simply workflow name. * Cleanup how we list kivy deps. * Will newer pip fix the cython issues? * Use absolute path. * Cython can't handle when parent dir is same name as project. * Fail on the first error. * Display needs to be specified globally. * Move from appveyor to GitHub Action. * Try fixing syntax error.. * Fix syntax error.. * Fix uploads. [build wheel] * Escape multiline command. [build wheel] * Cython can't handle deep dirs named kivy. [build wheel] * cmd can't have forward slash.. [build wheel] * Find the io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Use full pytest path to prevent cov issues, .ssh may not exist, catch stderr. * Try prevening pyinstaller erro not finding kivy.deps. * Try prevening pyinstaller erro not finding kivy.deps. [build wheel] * Switch to msys using choco. * Pyinstaller cannot seem to import kivy.deps. [build wheel win] * Use ubuntu key as it doesn't check IP/ * Give more time for video test. [build wheel win] * Use ssh keys directly. * clock has been removed from time. [build wheel] * Use msys path directly because ps doesn't accept args otherwise. [build wheel win] * Switch unittests from travis to GitHub actions. * Use full path. * Use full path. * Use full path. * Use full path. * Add OSX wheels. * Add osx app support [build wheel osx] [build app osx] * Seperate gst cahces because it's too big. [build wheel osx] [build app osx] * Try multiple caches. [build app osx] [build wheel osx] * Restore from cache. [build app osx] [build wheel osx] * Use gstreamer that is less than 400MB. [build app osx] [build wheel osx] * Extract platypus compressed files. [build app osx] * Restore package from cache. [build app osx] * Remove travis. [build wheel] [build app osx] * Define ref variable to use to find the branch * Don't block app creation - it hangs on the yes. [build app osx] * Disable osx app building for now * Add publishing to PyPI and de-duplicate osx/ubuntu code. [build wheel] [build app osx] * Dump context. * Add release and PR upload fixes. * Typo. * Use v1 of release action. * We are using dist, not wheelhouse. [build wheel] * Type [build wheel] * Needs sudo to remove docker generated files. [build wheel] * If we don't create dist, we don't have permissions to write in it. [build wheel] * Use PEP 508 to specify dependencies [build wheel] * Use new require tags. [build wheel]
2019-11-29 15:00:31 +00:00
}
function Generate-windows-wheels {
pip wheel --no-deps . -w dist/
Switch from Travis/Appveyor to GitHub Actions (#6622) * Switch Linux CI to GitHub Actions. * gst is included in ubuntu. * Detect if wheels are generated. * libtiff5 is used on bionic. * Name test ubuntu, and x11 is lowercase. * Simply workflow name. * Cleanup how we list kivy deps. * Will newer pip fix the cython issues? * Use absolute path. * Cython can't handle when parent dir is same name as project. * Fail on the first error. * Display needs to be specified globally. * Move from appveyor to GitHub Action. * Try fixing syntax error.. * Fix syntax error.. * Fix uploads. [build wheel] * Escape multiline command. [build wheel] * Cython can't handle deep dirs named kivy. [build wheel] * cmd can't have forward slash.. [build wheel] * Find the io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Use full pytest path to prevent cov issues, .ssh may not exist, catch stderr. * Try prevening pyinstaller erro not finding kivy.deps. * Try prevening pyinstaller erro not finding kivy.deps. [build wheel] * Switch to msys using choco. * Pyinstaller cannot seem to import kivy.deps. [build wheel win] * Use ubuntu key as it doesn't check IP/ * Give more time for video test. [build wheel win] * Use ssh keys directly. * clock has been removed from time. [build wheel] * Use msys path directly because ps doesn't accept args otherwise. [build wheel win] * Switch unittests from travis to GitHub actions. * Use full path. * Use full path. * Use full path. * Use full path. * Add OSX wheels. * Add osx app support [build wheel osx] [build app osx] * Seperate gst cahces because it's too big. [build wheel osx] [build app osx] * Try multiple caches. [build app osx] [build wheel osx] * Restore from cache. [build app osx] [build wheel osx] * Use gstreamer that is less than 400MB. [build app osx] [build wheel osx] * Extract platypus compressed files. [build app osx] * Restore package from cache. [build app osx] * Remove travis. [build wheel] [build app osx] * Define ref variable to use to find the branch * Don't block app creation - it hangs on the yes. [build app osx] * Disable osx app building for now * Add publishing to PyPI and de-duplicate osx/ubuntu code. [build wheel] [build app osx] * Dump context. * Add release and PR upload fixes. * Typo. * Use v1 of release action. * We are using dist, not wheelhouse. [build wheel] * Type [build wheel] * Needs sudo to remove docker generated files. [build wheel] * If we don't create dist, we don't have permissions to write in it. [build wheel] * Use PEP 508 to specify dependencies [build wheel] * Use new require tags. [build wheel]
2019-11-29 15:00:31 +00:00
}
function Rename-windows-wheels {
# Set new wheel name, keep default if release (tag)
# release: Kivy-X.Y.Z-cpAB-cpABm-ARCH.whl (Kivy_examples-X.Y.Z-py2.py3-none-any.whl)
# nightly: Kivy-X.Y.Z.dev0-cpAB-cpABm-ARCH.whl (Kivy_examples-X.Y.Z.dev0-py2.py3-none-any.whl)
# archive: Kivy-X.Y.Z.dev0.YYYYMMDD.githash-cpAB-cpABm-ARCH.whl (Kivy_examples-X.Y.Z.dev0.YYYYMMDD.githash-py2.py3-none-any.whl)
$WHEEL_DATE = python -c "from datetime import datetime;print(datetime.utcnow().strftime('%Y%m%d'))"
echo "Wheel date is: $WHEEL_DATE"
$GIT_TAG = git rev-parse --short HEAD
echo "Git tag is: $GIT_TAG"
raise-only-error -Func {python -c "import kivy" --config "kivy:log_level:error"}
Switch from Travis/Appveyor to GitHub Actions (#6622) * Switch Linux CI to GitHub Actions. * gst is included in ubuntu. * Detect if wheels are generated. * libtiff5 is used on bionic. * Name test ubuntu, and x11 is lowercase. * Simply workflow name. * Cleanup how we list kivy deps. * Will newer pip fix the cython issues? * Use absolute path. * Cython can't handle when parent dir is same name as project. * Fail on the first error. * Display needs to be specified globally. * Move from appveyor to GitHub Action. * Try fixing syntax error.. * Fix syntax error.. * Fix uploads. [build wheel] * Escape multiline command. [build wheel] * Cython can't handle deep dirs named kivy. [build wheel] * cmd can't have forward slash.. [build wheel] * Find the io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Use full pytest path to prevent cov issues, .ssh may not exist, catch stderr. * Try prevening pyinstaller erro not finding kivy.deps. * Try prevening pyinstaller erro not finding kivy.deps. [build wheel] * Switch to msys using choco. * Pyinstaller cannot seem to import kivy.deps. [build wheel win] * Use ubuntu key as it doesn't check IP/ * Give more time for video test. [build wheel win] * Use ssh keys directly. * clock has been removed from time. [build wheel] * Use msys path directly because ps doesn't accept args otherwise. [build wheel win] * Switch unittests from travis to GitHub actions. * Use full path. * Use full path. * Use full path. * Use full path. * Add OSX wheels. * Add osx app support [build wheel osx] [build app osx] * Seperate gst cahces because it's too big. [build wheel osx] [build app osx] * Try multiple caches. [build app osx] [build wheel osx] * Restore from cache. [build app osx] [build wheel osx] * Use gstreamer that is less than 400MB. [build app osx] [build wheel osx] * Extract platypus compressed files. [build app osx] * Restore package from cache. [build app osx] * Remove travis. [build wheel] [build app osx] * Define ref variable to use to find the branch * Don't block app creation - it hangs on the yes. [build app osx] * Disable osx app building for now * Add publishing to PyPI and de-duplicate osx/ubuntu code. [build wheel] [build app osx] * Dump context. * Add release and PR upload fixes. * Typo. * Use v1 of release action. * We are using dist, not wheelhouse. [build wheel] * Type [build wheel] * Needs sudo to remove docker generated files. [build wheel] * If we don't create dist, we don't have permissions to write in it. [build wheel] * Use PEP 508 to specify dependencies [build wheel] * Use new require tags. [build wheel]
2019-11-29 15:00:31 +00:00
$WHEEL_VERSION = python -c "import kivy;print(kivy.__version__)" --config "kivy:log_level:error"
echo "Kivy version is: $WHEEL_VERSION"
$TAG_NAME = python -c "import kivy; _, tag, n = kivy.parse_kivy_version(kivy.__version__); print(tag + n) if n is not None else print(tag or 'something')" --config "kivy:log_level:error"
echo "Tag is: $TAG_NAME"
$WHEEL_NAME = "$TAG_NAME.$WHEEL_DATE`.$GIT_TAG-"
echo "New wheel name is: $WHEEL_NAME"
$files = Get-ChildItem dist *.whl -Name
foreach ($WHEEL_DEFAULT in $files){
$WHEEL_NIGHTLY = $WHEEL_DEFAULT.Replace("$TAG_NAME-", $WHEEL_NAME)
echo "Copying from default $WHEEL_DEFAULT to nightly $WHEEL_NIGHTLY"
Copy-Item "dist\$WHEEL_DEFAULT" "dist\$WHEEL_NIGHTLY"
}
}
function Upload-windows-wheels-to-server($ip) {
echo "Uploading Kivy*:"
dir dist
C:\tools\msys64\usr\bin\bash --login -c ".ci/windows-server-upload.sh $ip dist 'Kivy*' ci/win/kivy/"
}
function Install-kivy-test-run-win-deps {
}
function Install-kivy-test-run-pip-deps {
python -m pip install pip wheel setuptools --upgrade
Switch from Travis/Appveyor to GitHub Actions (#6622) * Switch Linux CI to GitHub Actions. * gst is included in ubuntu. * Detect if wheels are generated. * libtiff5 is used on bionic. * Name test ubuntu, and x11 is lowercase. * Simply workflow name. * Cleanup how we list kivy deps. * Will newer pip fix the cython issues? * Use absolute path. * Cython can't handle when parent dir is same name as project. * Fail on the first error. * Display needs to be specified globally. * Move from appveyor to GitHub Action. * Try fixing syntax error.. * Fix syntax error.. * Fix uploads. [build wheel] * Escape multiline command. [build wheel] * Cython can't handle deep dirs named kivy. [build wheel] * cmd can't have forward slash.. [build wheel] * Find the io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Use full pytest path to prevent cov issues, .ssh may not exist, catch stderr. * Try prevening pyinstaller erro not finding kivy.deps. * Try prevening pyinstaller erro not finding kivy.deps. [build wheel] * Switch to msys using choco. * Pyinstaller cannot seem to import kivy.deps. [build wheel win] * Use ubuntu key as it doesn't check IP/ * Give more time for video test. [build wheel win] * Use ssh keys directly. * clock has been removed from time. [build wheel] * Use msys path directly because ps doesn't accept args otherwise. [build wheel win] * Switch unittests from travis to GitHub actions. * Use full path. * Use full path. * Use full path. * Use full path. * Add OSX wheels. * Add osx app support [build wheel osx] [build app osx] * Seperate gst cahces because it's too big. [build wheel osx] [build app osx] * Try multiple caches. [build app osx] [build wheel osx] * Restore from cache. [build app osx] [build wheel osx] * Use gstreamer that is less than 400MB. [build app osx] [build wheel osx] * Extract platypus compressed files. [build app osx] * Restore package from cache. [build app osx] * Remove travis. [build wheel] [build app osx] * Define ref variable to use to find the branch * Don't block app creation - it hangs on the yes. [build app osx] * Disable osx app building for now * Add publishing to PyPI and de-duplicate osx/ubuntu code. [build wheel] [build app osx] * Dump context. * Add release and PR upload fixes. * Typo. * Use v1 of release action. * We are using dist, not wheelhouse. [build wheel] * Type [build wheel] * Needs sudo to remove docker generated files. [build wheel] * If we don't create dist, we don't have permissions to write in it. [build wheel] * Use PEP 508 to specify dependencies [build wheel] * Use new require tags. [build wheel]
2019-11-29 15:00:31 +00:00
# workaround for https://github.com/pyinstaller/pyinstaller/issues/4265 until next release
python -m pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
}
function Install-kivy {
$old=(pwd).Path
cmd /c mklink /d "$HOME\kivy" "$old"
cd "$HOME\kivy"
python -m pip install -e .[dev,full]
Switch from Travis/Appveyor to GitHub Actions (#6622) * Switch Linux CI to GitHub Actions. * gst is included in ubuntu. * Detect if wheels are generated. * libtiff5 is used on bionic. * Name test ubuntu, and x11 is lowercase. * Simply workflow name. * Cleanup how we list kivy deps. * Will newer pip fix the cython issues? * Use absolute path. * Cython can't handle when parent dir is same name as project. * Fail on the first error. * Display needs to be specified globally. * Move from appveyor to GitHub Action. * Try fixing syntax error.. * Fix syntax error.. * Fix uploads. [build wheel] * Escape multiline command. [build wheel] * Cython can't handle deep dirs named kivy. [build wheel] * cmd can't have forward slash.. [build wheel] * Find the io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Use full pytest path to prevent cov issues, .ssh may not exist, catch stderr. * Try prevening pyinstaller erro not finding kivy.deps. * Try prevening pyinstaller erro not finding kivy.deps. [build wheel] * Switch to msys using choco. * Pyinstaller cannot seem to import kivy.deps. [build wheel win] * Use ubuntu key as it doesn't check IP/ * Give more time for video test. [build wheel win] * Use ssh keys directly. * clock has been removed from time. [build wheel] * Use msys path directly because ps doesn't accept args otherwise. [build wheel win] * Switch unittests from travis to GitHub actions. * Use full path. * Use full path. * Use full path. * Use full path. * Add OSX wheels. * Add osx app support [build wheel osx] [build app osx] * Seperate gst cahces because it's too big. [build wheel osx] [build app osx] * Try multiple caches. [build app osx] [build wheel osx] * Restore from cache. [build app osx] [build wheel osx] * Use gstreamer that is less than 400MB. [build app osx] [build wheel osx] * Extract platypus compressed files. [build app osx] * Restore package from cache. [build app osx] * Remove travis. [build wheel] [build app osx] * Define ref variable to use to find the branch * Don't block app creation - it hangs on the yes. [build app osx] * Disable osx app building for now * Add publishing to PyPI and de-duplicate osx/ubuntu code. [build wheel] [build app osx] * Dump context. * Add release and PR upload fixes. * Typo. * Use v1 of release action. * We are using dist, not wheelhouse. [build wheel] * Type [build wheel] * Needs sudo to remove docker generated files. [build wheel] * If we don't create dist, we don't have permissions to write in it. [build wheel] * Use PEP 508 to specify dependencies [build wheel] * Use new require tags. [build wheel]
2019-11-29 15:00:31 +00:00
cd "$old"
}
function Install-kivy-wheel {
$root=(pwd).Path
cd "$HOME"
python -m pip install pip wheel setuptools --upgrade
# workaround for https://github.com/pyinstaller/pyinstaller/issues/4265 until next release
python -m pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
$version=python -c "import sys; print('{}{}'.format(sys.version_info.major, sys.version_info.minor))"
$kivy_fname=(ls $root/dist/Kivy-*$version*win_amd64*.whl | Sort-Object -property @{Expression={$_.name.tostring().Length}} | Select-Object -First 1).name
$kivy_examples_fname=(ls $root/dist/Kivy_examples-*.whl | Sort-Object -property @{Expression={$_.name.tostring().Length}} | Select-Object -First 1).name
python -m pip install "$root/dist/$kivy_fname[full,dev]" "$root/dist/$kivy_examples_fname"
}
function Install-kivy-sdist {
$root=(pwd).Path
cd "$HOME"
python -m pip install pip wheel setuptools --upgrade
# workaround for https://github.com/pyinstaller/pyinstaller/issues/4265 until next release
python -m pip install https://github.com/pyinstaller/pyinstaller/archive/develop.zip
$kivy_fname=(ls $root/dist/Kivy-*.tar.gz).name
python -m pip install "$root/dist/$kivy_fname[full,dev]"
}
Switch from Travis/Appveyor to GitHub Actions (#6622) * Switch Linux CI to GitHub Actions. * gst is included in ubuntu. * Detect if wheels are generated. * libtiff5 is used on bionic. * Name test ubuntu, and x11 is lowercase. * Simply workflow name. * Cleanup how we list kivy deps. * Will newer pip fix the cython issues? * Use absolute path. * Cython can't handle when parent dir is same name as project. * Fail on the first error. * Display needs to be specified globally. * Move from appveyor to GitHub Action. * Try fixing syntax error.. * Fix syntax error.. * Fix uploads. [build wheel] * Escape multiline command. [build wheel] * Cython can't handle deep dirs named kivy. [build wheel] * cmd can't have forward slash.. [build wheel] * Find the io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Define include to avoid not finding io.h. [build wheel] * Use full pytest path to prevent cov issues, .ssh may not exist, catch stderr. * Try prevening pyinstaller erro not finding kivy.deps. * Try prevening pyinstaller erro not finding kivy.deps. [build wheel] * Switch to msys using choco. * Pyinstaller cannot seem to import kivy.deps. [build wheel win] * Use ubuntu key as it doesn't check IP/ * Give more time for video test. [build wheel win] * Use ssh keys directly. * clock has been removed from time. [build wheel] * Use msys path directly because ps doesn't accept args otherwise. [build wheel win] * Switch unittests from travis to GitHub actions. * Use full path. * Use full path. * Use full path. * Use full path. * Add OSX wheels. * Add osx app support [build wheel osx] [build app osx] * Seperate gst cahces because it's too big. [build wheel osx] [build app osx] * Try multiple caches. [build app osx] [build wheel osx] * Restore from cache. [build app osx] [build wheel osx] * Use gstreamer that is less than 400MB. [build app osx] [build wheel osx] * Extract platypus compressed files. [build app osx] * Restore package from cache. [build app osx] * Remove travis. [build wheel] [build app osx] * Define ref variable to use to find the branch * Don't block app creation - it hangs on the yes. [build app osx] * Disable osx app building for now * Add publishing to PyPI and de-duplicate osx/ubuntu code. [build wheel] [build app osx] * Dump context. * Add release and PR upload fixes. * Typo. * Use v1 of release action. * We are using dist, not wheelhouse. [build wheel] * Type [build wheel] * Needs sudo to remove docker generated files. [build wheel] * If we don't create dist, we don't have permissions to write in it. [build wheel] * Use PEP 508 to specify dependencies [build wheel] * Use new require tags. [build wheel]
2019-11-29 15:00:31 +00:00
function Test-kivy {
python -m pytest --cov=kivy --cov-report term --cov-branch "$(pwd)/kivy/tests"
}
function Test-kivy-installed {
cd "$HOME"
python -c 'import kivy'
$test_path=python -c 'import kivy.tests as tests; print(tests.__path__[0])' --config "kivy:log_level:error"
cd "$test_path"
echo "[run]`nplugins = kivy.tools.coverage`n" > .coveragerc
raise-only-error -Func {python -m pytest .}
}