Skip to content

Commit 1ffdc77

Browse files
committed
fix travis tests: explicitly install pyenv version
Also updates from 3.6 to 3.7
1 parent 5488b26 commit 1ffdc77

File tree

2 files changed

+18
-12
lines changed

2 files changed

+18
-12
lines changed

.travis.yml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
language: python
2+
cache:
3+
directories:
4+
- $HOME/.cache/pip
5+
- /opt/python
26
sudo: false
37
env:
48
- TOX_ENV=py27-flake8
5-
- TOX_ENV=py36-flake8
9+
- TOX_ENV=py37-flake8
610
- TOX_ENV=py27-dj18
711
- TOX_ENV=py27-dj19
812
- TOX_ENV=py27-dj110
913
- TOX_ENV=py27-dj111
10-
- TOX_ENV=py36-dj18
11-
- TOX_ENV=py36-dj19
12-
- TOX_ENV=py36-dj110
13-
- TOX_ENV=py36-dj111
14-
- TOX_ENV=py36-dj20
15-
- TOX_ENV=py36-dj21
14+
- TOX_ENV=py37-dj18
15+
- TOX_ENV=py37-dj19
16+
- TOX_ENV=py37-dj110
17+
- TOX_ENV=py37-dj111
18+
- TOX_ENV=py37-dj20
19+
- TOX_ENV=py37-dj21
1620
before_install:
17-
- pyenv global system 3.6
21+
- pyenv install 2.7 --skip-existing
22+
- pyenv install 3.7 --skip-existing
23+
- pyenv global system 3.7
1824
install:
1925
- pip install -r requirements-test.txt
2026
script:

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
;
77
[tox]
88
envlist =
9-
{py27,py36}-flake8,
10-
{py27,py36}-{dj18,dj19,dj110,dj111}
11-
py36-{dj20,dj21}
9+
{py27,py37}-flake8,
10+
{py27,py37}-{dj18,dj19,dj110,dj111}
11+
py37-{dj20,dj21}
1212

1313
[testenv]
1414
setenv =
@@ -29,7 +29,7 @@ deps =
2929
flake8
3030
commands = flake8 ajax_select tests example
3131

32-
[testenv:py36-flake8]
32+
[testenv:py37-flake8]
3333
deps =
3434
flake8
3535
commands = flake8 ajax_select tests example

0 commit comments

Comments
 (0)