Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

Add fake identity for VCSs #104

Merged
merged 8 commits into from
Jul 25, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 6 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,19 @@
language: python
python:
- "2.6"
- "2.7"
- "3.2"
- "3.3"
- "3.4"
- "3.5"
# command to install dependencies
install:
# develop seems to be required by travis since 02/2013
- python setup.py build develop
- python setup.py install
- sudo apt-get clean
- sudo apt-get install -qq zsh
- sudo pip install vcstools nose-cov coverage pyyaml coveralls
# Set git config to silence some stuff in the tests
- git config --global user.email "[email protected]"
- git config --global user.name "Foo Bar"
# Set the hg user
- echo -e "[ui]\nusername = Your Name <[email protected]>" >> ~/.hgrc
# Set the bzr user
- bzr whoami "Your Name <[email protected]>"
- sudo apt-get update && sudo apt-get install -qq zsh
- python -m pip install vcstools nose coverage pyyaml coveralls
# command to run tests
script:
- python -c 'import sys; print(sys.path)'
- nosetests --with-coverage --cover-package=wstool
- python -c 'import coverage'
- python -m nose --with-coverage --cover-package=wstool test/local
notifications:
email: false
after_success:
Expand Down
4 changes: 4 additions & 0 deletions test/scm_test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ class AbstractRosinstallCLITest(unittest.TestCase):
"""Base class for cli tests"""
@classmethod
def setUpClass(self):
os.environ['GIT_AUTHOR_NAME'] = 'Your Name'
os.environ['GIT_COMMITTER_NAME'] = 'Your Name'
os.environ['GIT_AUTHOR_EMAIL'] = '[email protected]'
os.environ['EMAIL'] = 'Your Name <[email protected]>'
self.new_environ = copy.copy(os.environ)
self.new_environ["PYTHONPATH"] = os.path.join(os.getcwd(), "src")
if "ROS_WORKSPACE" in self.new_environ:
Expand Down