代码拉取完成,页面将自动刷新
sudo: required
matrix:
include:
- os: linux
env: NAME=Linux
if: type = pull_request
python: 2.7
install:
- sudo apt-get install g++-multilib
- sudo -H pip install --upgrade pip
- pip install --user --upgrade setuptools setuptools_scm wheel cython
script:
- python setup.py bdist_wheel
- pip install --user dist/*.whl
- pip uninstall --yes afdko
- os: osx
env: NAME=OSX
if: type = pull_request
language: generic
install:
- curl -O https://bootstrap.pypa.io/get-pip.py
- python get-pip.py --user
- python -m pip install --user virtualenv
- python -m virtualenv .venv/
- source .venv/bin/activate
- pip install -U -r requirements-dev.txt
before_script:
- export PYTHONPATH=$PYTHONPATH:$(pwd)
script:
- flake8 setup.py
- flake8 Tests/*.py
- pushd afdko/Tools/SharedData/FDKScripts
- flake8 buildCFF2VF.py
- flake8 buildMasterOTFs.py
- flake8 CheckOutlinesUFO.py
- flake8 ConvertFontToCID.py
- flake8 FDKUtils.py
- flake8 MakeOTF.py
- flake8 ttfcomponentizer.py
- flake8 ufoTools.py
- popd
- python setup.py bdist_wheel
- deactivate
- export PATH=$PATH:'/Users/travis/Library/Python/2.7/bin'
- python -m pip install --user -U --force-reinstall dist/*.whl
- python -m pip install --user -r requirements-dev.txt
- pytest --cov
- python -m pip uninstall --yes afdko
after_success:
- codecov
- os: linux
sudo: required
services:
- docker
env:
- NAME=Linux-deploy
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64
- BUILD_DIST=true
if: type = push
language: python
python: 2.7
# skip default 'install' and 'script' steps: all the work is in
# before_deploy
install: true
script: true
- os: osx
osx_image: xcode6.4
env:
- NAME=OSX-deploy
- BUILD_DIST=true
if: type = push
language: generic
cache:
- pip
- directories:
- $HOME/.pyenv_cache
# Only build for *pushes* to 'master', 'develop' and 'release',
# not for pushes to other branches
# (build for PRs from any branch).
# The regex below is because Travis treats a tag on the master branch as if it
# were a different branch. The regex below is meant to match:
# digit(s).digit(s).digit(s) plus optional additional characters.
branches:
only:
- master
- /^\d+\.\d+\.\d+.*$/
- develop
- release
notifications:
slack: typekit:TRAVIS_SLACK_TOKEN
email:
on_success: change
on_failure: always
before_deploy:
- ./.travis/before_deploy.sh
deploy:
# deploy to Github Releases on tags
- provider: releases
api_key:
secure: JYAxvC7A46oY0mmhEknUzJ5iTeLwBWyV0ZnNXlx3t6uhKmmPadxSSkTR4uI87DXfYQBlvNnw+VDHaTeaaaXZOUXmcLn7UIjHsBqdhCGKWMKQ2Z0HpSMvYEUVUezHsLteZvdeL1i4c/q7Iaf2SuNuzOlnNvWomxC24yI/cSzRpqP0wumyXh8Qewod7B5/X2mBO8ICxkEETJBFlwHiWyN8p0lF/aaRIOmujHTqQCBy7xN81rGUcsmY5EaU4ojdwybUaa9e1XRNwwWxO3XOVMsSrlAOb8+PLlegi+LY5vi6e2udVHcRtm/2f0RZuKKjfQ6RMPumqkcCerKE5IdZr2NK0P74HXIrqJ4YX8dSIDk8IVEWgZxiYqBpAtXJvq40V90Mh0atR5318WtcUhPzZftVp5JajU+EU1FmyusNdjnHSYosNKVjCEkwqf3fySLk2uxqiDnyIwMUBsvmewwWCMw0NUOFHyG5uOKqRO4n5NWDnrqaUgcenbB/EZtIE/jrGddW7OgHCVS1jcqcTFK0yfz7X98ej6V1OJqEIwLZe2ZDNTGspcIsP83mtahJFF4lLuyfa5/cN7t/1Gc3rC0qNYa3diMK4gV8K3r1c7yjAy5d3siXspx/2Rb7u7jdbI8JLzWGfuByJj9MuN1RRP7nkqMkxpyDzib4QEG169Lb5Rus+Aw=
skip_cleanup: true
file_glob: true
file: "dist/*"
on:
tags: true
repo: adobe-type-tools/afdko
condition: "$BUILD_DIST == true"
# deploy to PyPI on tags
- provider: script
script: bash ./.travis/deploy.sh
skip_cleanup: true
on:
tags: true
repo: adobe-type-tools/afdko
condition: "$BUILD_DIST == true"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。