提交 8dc7a8db 编写于 作者: O Olli-Pekka Heinisuo

fix the travis USER issue

上级 8d5aa2b7
...@@ -762,11 +762,11 @@ after_success: | ...@@ -762,11 +762,11 @@ after_success: |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
if [[ $SDIST == 1 ]]; then if [[ $SDIST == 1 ]]; then
pip install twine pip install twine
twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist/opencv* twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist/opencv*
else else
pip install --user twine pip install --user twine
pip install --user --upgrade six pip install --user --upgrade six
twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv* twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
fi fi
fi fi
...@@ -779,9 +779,9 @@ after_success: | ...@@ -779,9 +779,9 @@ after_success: |
/usr/bin/python -m pip install --user -U -I twine /usr/bin/python -m pip install --user -U -I twine
if [[ $SDIST == 1 ]]; then if [[ $SDIST == 1 ]]; then
/usr/bin/python -m twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist/opencv* /usr/bin/python -m twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist/opencv*
else else
/usr/bin/python -m twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv* /usr/bin/python -m twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
fi fi
fi fi
......
...@@ -92,7 +92,7 @@ function pre_build { ...@@ -92,7 +92,7 @@ function pre_build {
echo "Running for OSX" echo "Running for OSX"
local CACHE_STAGE; (echo "$TRAVIS_BUILD_STAGE_NAME" | grep -qiF "final") || CACHE_STAGE=1 local CACHE_STAGE; (echo "$TRAVIS_BUILD_STAGE_NAME" | grep -qiF "final") || CACHE_STAGE=1
export USER=travis
#after the cache stage, all bottles and Homebrew metadata should be already cached locally #after the cache stage, all bottles and Homebrew metadata should be already cached locally
if [ -n "$CACHE_STAGE" ]; then if [ -n "$CACHE_STAGE" ]; then
brew update brew update
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册