Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

install updated pypy from ppa

Daniel Grañaecfa74310512
diff --git a/.travis-install.sh b/.travis-install.sh
new file mode 100755
index 000000000..357de55ef
--- /dev/null
+++ b/.travis-install.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+set -e
+set -x
+
+if [[ "${TOX_ENV}" == "pypy" ]]; then
+ sudo add-apt-repository -y ppa:pypy/ppa
+ sudo apt-get -qy update
+ sudo apt-get install -y pypy
+ # This is required because we need to get rid of the Travis installed PyPy
+ # or it'll take precedence over the PPA installed one.
+ sudo rm -rf /usr/local/pypy/bin
+fi
+
+pip install tox coveralls
diff --git a/.travis.yml b/.travis.yml
index 84250a75f..f823d1923 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -11,7 +11,7 @@ matrix:
- env: TOX_ENV=pypy
install:
- - pip install -M tox
+ - ./.travis-install.sh
script:
- tox -e $TOX_ENV