Skip to content
Browse files

--use-mirrors per recommendation from kennethreitz

  • Loading branch information...
1 parent b269304 commit 16802e257faef540b51847050c72a9d2c5c6002b @michaelklishin michaelklishin committed Feb 24, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/travis/build/job/test/python.rb
  2. +2 −2 spec/build/job/test/python_spec.rb
View
2 lib/travis/build/job/test/python.rb
@@ -19,7 +19,7 @@ def virtualenv_activate_location
def install
if requirements_file_found?
- "pip install -r #{requirements_file_location}"
+ "pip install -r #{requirements_file_location} --use-mirrors"
else
"echo 'Could not locate requirements.txt in the repository root, not installing dependencies. Override install: key in your .travis.yml to install dependencies the way your project needs.'"
end
View
4 spec/build/job/test/python_spec.rb
@@ -23,15 +23,15 @@
context "when Requirements.txt is found in the repository root" do
it "returns pip install -r Requirements.txt" do
shell.expects(:file_exists?).with("Requirements.txt").at_least_once.returns(true)
- job.install.should == "pip install -r Requirements.txt"
+ job.install.should == "pip install -r Requirements.txt --use-mirrors"
end
end
context "when requirements.txt is found in the repository root" do
it "returns pip install -r requirements.txt" do
shell.expects(:file_exists?).with("Requirements.txt").at_least_once.returns(false)
shell.expects(:file_exists?).with("requirements.txt").at_least_once.returns(true)
- job.install.should == "pip install -r requirements.txt"
+ job.install.should == "pip install -r requirements.txt --use-mirrors"
end
end

0 comments on commit 16802e2

Please sign in to comment.
Something went wrong with that request. Please try again.