Skip to content

Commit

Permalink
Fix travis (#629)
Browse files Browse the repository at this point in the history
* use python -m to ensure correct interpreter

Signed-off-by: William Woodall <william@osrfoundation.org>

* remove special cases for homebrew

Signed-off-by: William Woodall <william@osrfoundation.org>

* also python -m for codecov

Signed-off-by: William Woodall <william@osrfoundation.org>
  • Loading branch information
wjwwood authored Sep 15, 2018
1 parent e5d6772 commit 419c738
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ matrix:
install:
- source .travis/install.sh
- python --version
- pip install PyYAML argparse rospkg vcstools catkin_pkg python-dateutil rosdistro
- pip install -e .
- pip install nose coverage flake8 mock codecov
- python -m pip install PyYAML argparse rospkg vcstools catkin_pkg python-dateutil rosdistro
- python -m pip install -e .
- python -m pip install nose coverage flake8 mock codecov
# command to run tests
script:
- nosetests --with-coverage --cover-package=rosdep2 --with-xunit test
- python -m nose --with-coverage --cover-package=rosdep2 --with-xunit test
after_script:
- codecov
- python -m codecov
notifications:
email: false
11 changes: 0 additions & 11 deletions .travis/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,6 @@ do_install()
PYTHON_ENV_NAME=virtual-env-$TRAVIS_PYTHON_VERSION
pyenv virtualenv $TRAVIS_PYTHON_VERSION $PYTHON_ENV_NAME
pyenv activate $PYTHON_ENV_NAME

elif [[ $TRAVIS_OS_NAME == 'osx' && $PYTHON_INSTALLER == 'brew' ]]; then
# nose 1.3.7 creates /usr/local/man dir if it does not exist.
# The operation fails because current user does not own /usr/local. Create the dir manually instead.
sudo mkdir /usr/local/man
sudo chown -R $(whoami) $(brew --prefix)/*

export PATH=$(pwd)/.travis/shim:$PATH

mkdir -p ~/Library/Python/2.7/lib/python/site-packages
echo "$(brew --prefix)/lib/python2.7/site-packages" >> ~/Library/Python/2.7/lib/python/site-packages/homebrew.pth
fi
}

Expand Down
6 changes: 0 additions & 6 deletions .travis/shim/pip

This file was deleted.

0 comments on commit 419c738

Please sign in to comment.