David Reid | 6b609bb | 2013-11-06 11:44:15 -0800 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | set -x |
| 5 | |
| 6 | if [[ "${OPENSSL}" == "0.9.8" ]]; then |
| 7 | sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu/ lucid main" |
| 8 | fi |
| 9 | |
| 10 | if [[ "${TOX_ENV}" == "pypy" ]]; then |
| 11 | sudo add-apt-repository -y ppa:pypy/ppa |
| 12 | fi |
| 13 | |
| 14 | sudo apt-get -y update |
| 15 | |
| 16 | if [[ "${OPENSSL}" == "0.9.8" ]]; then |
| 17 | sudo apt-get install -y --force-yes libssl-dev/lucid |
| 18 | fi |
| 19 | |
David Reid | 2752924 | 2013-11-06 13:13:53 -0800 | [diff] [blame^] | 20 | if [[ "${TOX_ENV}" == "pypy" ]]; then |
David Reid | 6b609bb | 2013-11-06 11:44:15 -0800 | [diff] [blame] | 21 | sudo apt-get install -y pypy |
| 22 | |
| 23 | # This is required because we need to get rid of the Travis installed PyPy |
| 24 | # or it'll take precedence over the PPA installed one. |
| 25 | sudo rm -rf /usr/local/pypy/bin |
| 26 | fi |
| 27 | |
| 28 | pip install tox coverage |