Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenCV
opencv-python
提交
51226a7f
O
opencv-python
项目概览
OpenCV
/
opencv-python
12 个月 前同步成功
通知
230
Star
3707
Fork
754
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
opencv-python
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
51226a7f
编写于
10月 11, 2021
作者:
C
Christian Clauss
提交者:
GitHub
10月 11, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Travis CI seems to be on vacation
https://travis-ci.org/github/opencv
上级
80f0790c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
0 addition
and
410 deletion
+0
-410
.travis.yml
.travis.yml
+0
-410
未找到文件。
.travis.yml
已删除
100644 → 0
浏览文件 @
80f0790c
env
:
global
:
-
"
PS4='+(${BASH_SOURCE}:${LINENO}):
${FUNCNAME[0]:+${FUNCNAME[0]}():
}'"
# pip dependencies to _test_ your project
-
TEST_DEPENDS="numpy==1.11.1"
# params to bdist_wheel. used to set osx build target.
-
CONFIG_PATH="travis_config.sh"
-
USE_CCACHE=1
-
UNICODE_WIDTH=32
-
SDIST=0
# Save some time, we and setup check them out on demand instead
# https://docs.travis-ci.com/user/customizing-the-build/#Git-Clone-Depth
git
:
submodules
:
false
# https://docs.travis-ci.com/user/caching
cache
:
directories
:
# `cache: ccache: true` has no effect if `language:` is not `c` or `cpp`
-
$HOME/.ccache
# Add more cache stages (s2 etc) and corresponding OSX jobs like s1
# if brew builds start to take longer than one Travis time limit
stages
:
-
final
jobs
:
fast_finish
:
true
# Travis exclude is buggy, this seems to be the only way to disable default build
exclude
:
-
language
:
ruby
include
:
# default builds for Linux
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.6
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=0
-
ENABLE_HEADLESS=0
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.7
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=0
-
ENABLE_HEADLESS=0
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.8
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=0
-
ENABLE_HEADLESS=0
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.9
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=0
-
ENABLE_HEADLESS=0
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
# headless builds for Linux
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.6
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=0
-
ENABLE_HEADLESS=1
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.7
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=0
-
ENABLE_HEADLESS=1
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.8
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=0
-
ENABLE_HEADLESS=1
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.9
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=0
-
ENABLE_HEADLESS=1
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
# contrib builds for Linux
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.6
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=1
-
ENABLE_HEADLESS=0
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.7
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=1
-
ENABLE_HEADLESS=0
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.8
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=1
-
ENABLE_HEADLESS=0
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.9
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=1
-
ENABLE_HEADLESS=0
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
# headless contrib builds for Linux
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.6
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=1
-
ENABLE_HEADLESS=1
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.7
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=1
-
ENABLE_HEADLESS=1
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.8
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=1
-
ENABLE_HEADLESS=1
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
-
os
:
linux
arch
:
arm64
language
:
generic
dist
:
xenial
services
:
docker
env
:
-
MB_PYTHON_VERSION=3.9
-
PLAT=aarch64
-
DOCKER_TEST_IMAGE=multibuild/xenial_arm64v8
-
ENABLE_CONTRIB=1
-
ENABLE_HEADLESS=1
-
TEST_DEPENDS=numpy==1.19.0
-
USE_CCACHE=0
cache
:
directories
:
$HOME/.ccache
# The first line is printed in the folding header in Travis output
before_install
:
|
set -e
if [[ $SDIST == 0 ]]; then
# Check out and prepare the source
# Multibuild doesn't have releases, so --depth would break eventually (see
# https://superuser.com/questions/1240216/server-does-not-allow-request-for-unadvertised)
git submodule update --init multibuild
source multibuild/common_utils.sh
# https://github.com/matthew-brett/multibuild/issues/116
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export ARCH_FLAGS=" "; fi
source multibuild/travis_steps.sh
# This sets -x
source travis_multibuild_customize.sh
echo $ENABLE_CONTRIB > contrib.enabled
echo $ENABLE_HEADLESS > headless.enabled
echo "end"
# Not interested in travis internal scripts' output
fi
set +x
install
:
|
# Build and package
set -x
if [[ $SDIST == 1 ]]; then
python -m pip install --upgrade pip
python -m pip install scikit-build
python setup.py sdist
else
build_wheel $REPO_DIR $PLAT
fi
set +x
script
:
|
# Install and run tests
set -x
if [[ $SDIST == 1 ]]; then
echo "skipping tests because of sdist"
else
install_run $PLAT && rc=$? || rc=$?
fi
set +x
#otherwise, Travis logic terminates prematurely
#https://travis-ci.community/t/shell-session-update-command-not-found-in-build-log-causes-build-to-fail-if-trap-err-is-set/817
trap ERR
test "$rc" -eq 0
after_success
:
|
# Upload wheels to pypi if tag is set
set -x
if [ -n "$TRAVIS_TAG" ]; then
if [[ $ENABLE_CONTRIB == 0 ]]; then
if [[ $ENABLE_HEADLESS == 0 ]]; then
echo "This is default build. Deployment will be done to to PyPI entry opencv-python."
else
echo "This is headless contrib build. Deployment will be done to to PyPI entry opencv-python-headless."
fi
else
if [[ $ENABLE_HEADLESS == 0 ]]; then
echo "This is contrib build. Deployment will be done to to PyPI entry opencv-contrib-python."
else
echo "This is headless contrib build. Deployment will be done to to PyPI entry opencv-contrib-python-headless."
fi
fi
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ $SDIST == 1 ]]; then
pip install twine
twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist/opencv*
else
pip install --user twine
pip install --user --upgrade six
twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
fi
fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
# macpython 3.5 doesn't support recent TLS protocols which causes twine
# upload to fail, so we use the system Python to run twine
/usr/bin/python -m ensurepip --user
/usr/bin/python -m pip install --user -U pip
/usr/bin/python -m pip install --user -U -I twine
if [[ $SDIST == 1 ]]; then
/usr/bin/python -m twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist/opencv*
else
/usr/bin/python -m twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
fi
fi
fi
# # Save to Azure storage always
# if [[ $TRAVIS_CPU_ARCH != "arm64" ]]; then
# if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
# curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
# else
# brew install azure-cli
# fi
# az storage container create -n ${TRAVIS_COMMIT} --public-access blob
# if [[ $SDIST == 1 ]]; then
# az storage blob upload-batch -d ${TRAVIS_COMMIT} -s ${TRAVIS_BUILD_DIR}/dist --pattern *.gz
# else
# az storage blob upload-batch -d ${TRAVIS_COMMIT} -s ${TRAVIS_BUILD_DIR}/wheelhouse --pattern opencv*.whl
# fi
# fi
set +x
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录