Remove Travis and Appveyor integration

This commit is contained in:
Nikolaus Waxweiler 2020-11-20 10:06:14 +00:00
parent 67d01e837c
commit c7819e6bc3
6 changed files with 0 additions and 218 deletions

View File

@ -1,56 +0,0 @@
environment:
matrix:
- JOB: "3.7 64-bit"
PYTHON_HOME: "C:\\Python37-x64"
- JOB: "3.8 64-bit"
PYTHON_HOME: "C:\\Python38-x64"
branches:
only:
- master
# We want to build wip/* branches since these are not usually used for PRs
- /^wip\/.*$/
# We want to build version tags as well.
- /^\d+\.\d+.*$/
install:
# If there is a newer build queued for the same PR, cancel this one.
# The AppVeyor 'rollout builds' option is supposed to serve the same
# purpose but it is problematic because it tends to cancel builds pushed
# directly to master instead of just PR builds (or the converse).
# credits: JuliaLang developers.
- ps: if ($env:APPVEYOR_PULL_REQUEST_NUMBER -and $env:APPVEYOR_BUILD_NUMBER -ne ((Invoke-RestMethod `
https://ci.appveyor.com/api/projects/$env:APPVEYOR_ACCOUNT_NAME/$env:APPVEYOR_PROJECT_SLUG/history?recordsNumber=50).builds | `
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }
# Prepend Python to the PATH of this build
- "SET PATH=%PYTHON_HOME%;%PYTHON_HOME%\\Scripts;%PATH%"
# check that we have the expected version and architecture for Python
- "python --version"
- "python -c \"import struct; print(struct.calcsize('P') * 8)\""
# upgrade pip and setuptools to avoid out-of-date warnings
- "python -m pip install --disable-pip-version-check --user --upgrade pip setuptools virtualenv"
# install the dependencies to run the tests
- "python -m pip install tox"
build: false
test_script:
# run tests with the current 'python' in %PATH%, and measure test coverage
- "tox -e py-cov"
after_test:
# upload test coverage to Codecov.io
- "tox -e codecov"
notifications:
- provider: Email
to:
- fonttools-dev@googlegroups.com
on_build_success: false
on_build_failure: true
on_build_status_changed: true

View File

@ -1,90 +0,0 @@
dist: xenial
language: python
python: 3.6
env:
global:
- TWINE_USERNAME="anthrotype"
- secure: PJuCmlDuwnojiw3QuDhfNAaU4f/yeJcEcRzJAudA66bwZK7hvxV7Tiy9A17Bm6yO0HbJmmyjsIr8h2e7/PyY6QCaV8RqcMDkQ0UraU16pRsihp0giVXJoWscj2sCP4cNDOBVwSaGAX8yZ2OONc5srESywghzcy8xmgw6O+XFqx4=
branches:
only:
- master
# We want to build wip/* branches since these are not usually used for PRs
- /^wip\/.*$/
# We want to build version tags as well.
- /^\d+\.\d+.*$/
matrix:
fast_finish: true
include:
- python: 3.6
env:
- TOXENV=mypy
- python: 3.6
env:
- TOXENV=py36-cov,package_readme
- BUILD_DIST=true
- python: 3.7
env: TOXENV=py37-cov
- python: 3.8
env: TOXENV=py38-cov
- python: 3.8
env: TOXENV=py38-cy
- python: pypy3
# disable coverage.py on pypy because of performance problems
env: TOXENV=pypy3
dist: xenial
- language: generic
os: osx
env:
- TOXENV=py3-cov
- HOMEBREW_NO_AUTO_UPDATE=1
allow_failures:
# We use fast_finish + allow_failures because OSX builds take forever
# https://blog.travis-ci.com/2013-11-27-fast-finishing-builds
- language: generic
os: osx
env:
- TOXENV=py3-cov
- HOMEBREW_NO_AUTO_UPDATE=1
cache:
- pip
- directories:
- $HOME/.pyenv_cache
addons:
apt:
packages:
- language-pack-de
before_install:
- source ./.travis/before_install.sh
install:
- ./.travis/install.sh
script:
- ./.travis/run.sh
after_success:
- ./.travis/after_success.sh
notifications:
irc: "irc.freenode.org##fonts"
email: fonttools-dev@googlegroups.com
deploy:
# deploy to Github Releases on tags
- provider: releases
api_key:
secure: KEcWhJxMcnKay7wmWJCpg2W5GWHTQ+LaRbqGM11IKGcQuEOFxWuG7W1xjGpVdKPj/MQ+cG0b9hGUFpls1hwseOA1HANMv4xjCgYkuvT1OdpX/KOcZ7gfe/qaovzVxHyP9xwohnHSJMb790t37fmDfFUSROx3iEexIX09LLoDjO8=
skip_cleanup: true
file_glob: true
file: "dist/*"
on:
tags: true
repo: fonttools/fonttools
all_branches: true
condition: "$BUILD_DIST == true"

View File

@ -1,16 +0,0 @@
#!/bin/bash
set -e
set -x
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
source .venv/bin/activate
fi
# upload coverage data to Codecov.io
[[ ${TOXENV} == *"-cov"* ]] && tox -e codecov
# if tagged commit, create distribution packages and deploy to PyPI
if [ -n "$TRAVIS_TAG" ] && [ "$TRAVIS_REPO_SLUG" == "fonttools/fonttools" ] && [ "$BUILD_DIST" == true ]; then
tox -e pypi
fi

View File

@ -1,6 +0,0 @@
#!/bin/bash
if [[ -n "$PYENV_VERSION" ]]; then
wget https://github.com/praekeltfoundation/travis-pyenv/releases/download/${TRAVIS_PYENV_VERSION}/setup-pyenv.sh
source setup-pyenv.sh
fi

View File

@ -1,30 +0,0 @@
#!/bin/bash
set -e
set -x
ci_requirements="pip setuptools tox"
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
if [[ ${TOXENV} == *"py27"* ]]; then
# install pip on the system python
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py --user
python -m pip install --user virtualenv
python -m virtualenv .venv/
elif [[ ${TOXENV} == *"py3"* ]]; then
# install current python3 with homebrew
# NOTE: the formula is now named just "python"
brew install python
command -v python3
python3 --version
python3 -m pip install virtualenv
python3 -m virtualenv .venv/
else
echo "unsupported $TOXENV: "${TOXENV}
exit 1
fi
source .venv/bin/activate
fi
python -m pip install --upgrade $ci_requirements

View File

@ -1,20 +0,0 @@
#!/bin/bash
set -e
set -x
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
source .venv/bin/activate
fi
tox --skip-missing-interpreters false
# re-run all the XML-related tests, this time without lxml but using the
# built-in ElementTree library.
if [ -z "$TOXENV" ]; then
TOXENV="py-nolxml"
else
# strip additional tox envs after the comma, add -nolxml factor
TOXENV="${TOXENV%,*}-nolxml"
fi
tox --skip-missing-interpreters false -e $TOXENV -- Tests/ufoLib Tests/misc/etree_test.py Tests/misc/plistlib_test.py