diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index be60ab52a..000000000 --- a/.appveyor.yml +++ /dev/null @@ -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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 389d3372c..000000000 --- a/.travis.yml +++ /dev/null @@ -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" diff --git a/.travis/after_success.sh b/.travis/after_success.sh deleted file mode 100755 index 07bcab5ec..000000000 --- a/.travis/after_success.sh +++ /dev/null @@ -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 diff --git a/.travis/before_install.sh b/.travis/before_install.sh deleted file mode 100755 index 8cc4edba8..000000000 --- a/.travis/before_install.sh +++ /dev/null @@ -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 diff --git a/.travis/install.sh b/.travis/install.sh deleted file mode 100755 index a62b23658..000000000 --- a/.travis/install.sh +++ /dev/null @@ -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 diff --git a/.travis/run.sh b/.travis/run.sh deleted file mode 100755 index e947d8505..000000000 --- a/.travis/run.sh +++ /dev/null @@ -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