forked from jasmine/jasmine-py
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (49 loc) · 1.32 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
language: python
cache: pip
sudo: false
addons:
firefox: "49.0.2"
env:
global:
- PYTHONPATH=.
- DISPLAY=:99.0
before_install:
- |
case "$TRAVIS_PYTHON_VERSION" in
pypy) export PYPY_VERSION="pypy-2.6.1" ;;
pypy3) export PYPY_VERSION="pypy3-2.4.0" ;;
esac
if ! [ -z "$PYPY_VERSION" ]
then
export PYENV_ROOT="$HOME/.pyenv"
if [ -f "$PYENV_ROOT/bin/pyenv" ]
then
pushd "$PYENV_ROOT" && git pull && popd
else
rm -rf "$PYENV_ROOT" \
&& git clone --depth 1 https://github.com/yyuu/pyenv.git "$PYENV_ROOT"
fi
"$PYENV_ROOT/bin/pyenv" install "$PYPY_VERSION"
virtualenv --python="$PYENV_ROOT/versions/$PYPY_VERSION/bin/python" \
"$HOME/virtualenvs/$PYPY_VERSION"
source "$HOME/virtualenvs/$PYPY_VERSION/bin/activate"
fi
- wget https://github.com/mozilla/geckodriver/releases/download/v0.11.1/geckodriver-v0.11.1-linux64.tar.gz
- mkdir geckodriver
- tar -xzf geckodriver-v0.11.1-linux64.tar.gz -C geckodriver
- export PATH=$PATH:$PWD/geckodriver
install:
- pip install -U -r requirements.txt
- pip install -U -r requirements_dev.txt
before_script:
- "export DISPLAY=:99.0"
- sh -e /etc/init.d/xvfb start
- sleep 3 # give xvfb some time to start
script:
- py.test -s
python:
- "2.6"
- "2.7"
- "3.4"
- "3.5"
- "pypy"