Skip to content

Commit 8dc7a8d

Browse files
committed
fix the travis USER issue
1 parent 8d5aa2b commit 8dc7a8d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -762,11 +762,11 @@ after_success: |
762762
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
763763
if [[ $SDIST == 1 ]]; then
764764
pip install twine
765-
twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist/opencv*
765+
twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist/opencv*
766766
else
767767
pip install --user twine
768768
pip install --user --upgrade six
769-
twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
769+
twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
770770
fi
771771
772772
fi
@@ -779,9 +779,9 @@ after_success: |
779779
/usr/bin/python -m pip install --user -U -I twine
780780
781781
if [[ $SDIST == 1 ]]; then
782-
/usr/bin/python -m twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist/opencv*
782+
/usr/bin/python -m twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/dist/opencv*
783783
else
784-
/usr/bin/python -m twine upload -u ${USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
784+
/usr/bin/python -m twine upload -u ${PYPI_USER} -p ${PASS} --skip-existing ${TRAVIS_BUILD_DIR}/wheelhouse/opencv*
785785
fi
786786
787787
fi

travis_config.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function pre_build {
9292
echo "Running for OSX"
9393

9494
local CACHE_STAGE; (echo "$TRAVIS_BUILD_STAGE_NAME" | grep -qiF "final") || CACHE_STAGE=1
95-
export USER=travis
95+
9696
#after the cache stage, all bottles and Homebrew metadata should be already cached locally
9797
if [ -n "$CACHE_STAGE" ]; then
9898
brew update

0 commit comments

Comments
 (0)