Skip to content

Commit 082573b

Browse files
committed
Update travis CI/CD
1 parent 3defa1b commit 082573b

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

.travis.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Use a container-based environment
2-
sudo: false
1+
dist: xenial
2+
os: linux
33

44
language: python
55

@@ -14,12 +14,23 @@ jobs:
1414
- language: python
1515
python: 3.6
1616
name: "linting"
17-
script:
18-
- tox -e lint
19-
20-
env:
21-
- MONGOENGINE=latest_pip
22-
- MONGOENGINE=dev
17+
env: TOXENV=lint
18+
- language: python
19+
python: 3.6
20+
name: "Test on python 3.6"
21+
env: TOXENV=py36
22+
- language: python
23+
python: 3.7
24+
name: "Test on python 3.7"
25+
env: TOXENV=py37
26+
- language: python
27+
python: 3.8
28+
name: "Test on python 3.8"
29+
env: TOXENV=py38
30+
- language: python
31+
python: pypy3
32+
name: "Test on python pypy3"
33+
env: TOXENV=pypy3
2334

2435
services:
2536
- mongodb
@@ -31,11 +42,8 @@ install:
3142
- travis_retry pip install tox>=3.14
3243
- travis_retry pip install virtualenv
3344

34-
# Cache dependencies installed via pip
35-
cache: pip
36-
3745
script:
38-
- tox -e $(echo py$TRAVIS_PYTHON_VERSION-me_$MONGOENGINE | tr -d . | sed -e 's/pypypy/pypy/') -- --with-coverage
46+
- tox
3947

4048
after_success:
4149
- coveralls --verbose
@@ -60,11 +68,8 @@ deploy:
6068
distributions: "sdist bdist_wheel"
6169

6270
# only deploy on tagged commits (aka GitHub releases) and only for the
63-
# parent repo's builds running Python 2.7 along with dev MongoEngine (we run
64-
# Travis against many different Python and MongoEngine versions and we don't
65-
# want the deploy to occur multiple times).
71+
# parent repo's builds running Python 3.6
6672
on:
6773
tags: true
68-
condition: "$MONGOENGINE = dev"
69-
python: 3.5
74+
python: 3.6
7075
repo: MongoEngine/flask-mongoengine

0 commit comments

Comments
 (0)