代码拉取完成,页面将自动刷新
language: python
branches:
except:
- /pyup\/.*/
# Make sure we are on Ubuntu 16.04. This fixes the following error, which
# appears on Trusty (Ubuntu 14.04) when testing Linux Python 3.5 and 3.6 with
# PyQt5 5.12: ``relocation error: /tmp/_MEIFdpiBr/libQt5DBus.so.5: symbol
# dbus_message_get_allow_interactive_authorization, version LIBDBUS_1_3 not
# defined in file libdbus-1.so.3 with link time reference``.
dist: xenial
# Cache pip packages. Explicitly name the pip-cache directory since we
# use a custom `install` step which annuls `cache: pip`.
cache:
directories:
- $HOME/.cache/pip
- $HOME/py37
os:
- linux
services:
# PyQt5 tests require a GUI. See https://docs.travis-ci.com/user/gui-and-headless-browsers/#using-services-xvfb.
- xvfb
jobs:
fast_finish: true
include:
# macOS is first to account for the delay in starting the build on macOS.
# This prevents the build from hanging on macOS as the last job to finish
# in a stage.
- stage: Test - PyInstaller
os: osx
language: minimal
cache:
directories:
- $HOME/Library/Caches/pip
# Define the ``before_install-osx`` `node anchor
# <https://yaml.org/spec/1.2/spec.html#id2785586>`_, so the contents of
# the ``script`` node can be re-used.
before_install: &before_install-osx
# Activate a venv to ensure we're using the correct Python interpreter.
# Per http://steven.casagrande.io/articles/travis-ci-and-if-statements/,
# ensure the build fails for statements in an ``if`` clause.
- python3 -m venv venv
- source venv/bin/activate
script: &script-test-pyinstaller
# -n 3
# Run tests and speed them up by sending them to multiple CPUs.
#
# --maxfail 3
# End tests after 3 failures.
#
# --durations 10
# Print the 10 longest tests; see
# https://docs.pytest.org/en/latest/usage.html#profiling-test-execution-duration
- >
py.test -n 3 --maxfail 3 --durations 10
tests/unit tests/functional
--ignore tests/functional/test_libraries.py
- stage: Test - Libraries
os: osx
language: minimal
cache:
directories:
- $HOME/Library/Caches/pip
# Insert the earlier defined ``before_install-osx`` node anchor contents
# by referencing it with an `alias node
# <https://yaml.org/spec/1.2/spec.html#id2786196>`_.
before_install: *before_install-osx
script: &script-test-libraries
- >
py.test -n 3 --maxfail 3 --durations 10
tests/functional/test_libraries.py
- &test-pyinstaller
stage: Test - PyInstaller
python: 2.7
script: *script-test-pyinstaller
- &test-libraries
stage: Test - Libraries
python: 2.7
before_install:
# Install OpenSSL 1.1. This fixes dynamic linking problems when PyQt5.13 tries
# to link with OpenSSL 1.1 -- on Ubuntu 16 (xenial), the older OpenSSL
# produces errors like ``qt.network.ssl: QSslSocket: cannot resolve
# OPENSSL_init_ssl``.
- sudo add-apt-repository ppa:carsten-uppenbrink-net/openssl -y
- sudo apt-get update -q
- sudo apt install openssl -q
script: *script-test-libraries
- &lint
stage: Lint
python: 2.7
script:
- >
if [ "$TRAVIS_PULL_REQUEST" != "false" ] ; then
git fetch origin $TRAVIS_BRANCH:$TRAVIS_BRANCH --depth 1 || travis_terminate 1;
flake8-diff -v -v -v $TRAVIS_BRANCH || travis_terminate 1;
fi
- <<: *test-pyinstaller
python: 3.5
- <<: *test-libraries
python: 3.5
- <<: *test-pyinstaller
python: 3.6
- <<: *test-libraries
python: 3.6
- <<: *lint
python: 3.6
- <<: *test-pyinstaller
python: 3.7
- <<: *test-libraries
python: 3.7
- <<: *test-pyinstaller
python: nightly
- <<: *test-libraries
python: nightly
allow_failures:
# Just tests how PyInstaller performs with upcoming Python
- python: "nightly"
addons:
# Python packages should be installed by "pip" via the "test/requirements-library.txt" specification.
apt:
packages:
# lxml dependencies.
- libxml2-dev
- libxslt1-dev
# pyttsx dependencies.
- libespeak1
# SciPy dependencies.
- gfortran
- libatlas-base-dev
# Per https://www.riverbankcomputing.com/pipermail/pyqt/2019-February/041363.html,
# PyQt5 5.12 needs a library not installed by default.
- libxkbcommon-x11-0
# See https://docs.travis-ci.com/user/installing-dependencies/#installing-packages-on-macos.
homebrew:
packages:
- python
# Update to Python 3.7 via homebrew.
# Disabled, since this takes a HUGE amount of test time.
#update: true
install:
# Update pip.
- python -m pip install -U pip setuptools wheel | cat
# Install dependencies for tests.
- pip install --progress-bar=off -U -r tests/requirements-tools.txt -r tests/requirements-libraries.txt
# Compile bootloader
- cd bootloader
- python waf distclean all
- cd ..
# Install PyInstaller.
- pip install --progress-bar=off -e .
# Make sure the help options print.
- python -m pyinstaller -h
script:
- true
notifications:
irc:
channels:
- "irc.freenode.org#pyinstaller"
use_notice: true
# skip_join: true would require +n mode *not to be set on #pyinstaller
skip_join: false
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。