Skip to content
This repository was archived by the owner on Sep 14, 2023. It is now read-only.

Commit 92cb82b

Browse files
committed
travis: refactored and added py38 testing
1 parent 9936031 commit 92cb82b

File tree

2 files changed

+32
-24
lines changed

2 files changed

+32
-24
lines changed

.travis.yml

Lines changed: 31 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,40 @@
22
conditions: v1
33
dist: xenial
44
# Config file for automatic testing at travis-ci.org
5+
56
services:
67
- docker
78
language: python
89

10+
branches:
11+
only:
12+
- master
13+
- /[0-9]+\.[0-9]+\.[0-9]+(.*)?$/
14+
15+
cache:
16+
- pip
17+
- directories:
18+
- "node_modules"
19+
- $HOME/.cache
20+
os:
21+
- linux
22+
before_install:
23+
- which tox >/dev/null || if [ -z ${VIRTUAL_ENV+x} ]; then python -m pip install --user tox tox-pyenv; else python -m pip install tox tox-pyenv; fi
924
jobs:
1025
fast_finish: true
1126
include:
12-
# combined env improve execution speed on travis considerably
1327
- name: lint,py37,distros
14-
python: "3.7"
1528
env: TOXENV=lint,py37,distros
16-
- name: py36
17-
python: "3.6"
18-
env: TOXENV=py36
29+
python: "3.7"
1930
- name: py35
2031
python: "3.5"
2132
env: TOXENV=py35
33+
- name: py36
34+
python: "3.6"
35+
env: TOXENV=py36
36+
- name: py38
37+
python: "3.8"
38+
env: TOXENV=py38
2239
- name: py27
2340
python: "2.7"
2441
env: TOXENV=py27
@@ -27,32 +44,23 @@ jobs:
2744
env: TOXENV=devel
2845
- stage: deploy
2946
name: deploy
30-
env: TOXENV=upload
31-
if: repo == "pycontribs/pytest-molecule" AND tag IS present AND type != cron
47+
if: tag IS present AND type != cron
3248
addons: {}
3349
services: []
34-
35-
install:
36-
- pip install tox
37-
50+
env: TOXENV=upload
3851
script:
39-
# Ping stdout every 9 minutes or Travis kills build,
40-
# while travis_wait does not show the command output while processing.
41-
# https://docs.travis-ci.com/user/common-build-problems/#build-times-out-because-no-output-was-received
4252
# https://github.com/travis-ci/travis-ci/issues/4190#issuecomment-353342526
43-
- |
44-
while sleep 9m; do
45-
echo "====[ $SECONDS seconds still running ]===="
46-
done &
47-
- tox
53+
- while sleep 9m; do echo "=====[ $SECONDS seconds still running ]====="; done &
54+
- python -m tox
55+
- kill %1
56+
57+
env:
58+
global:
59+
- PIP_DISABLE_PIP_VERSION_CHECK=1
4860

4961
before_cache:
5062
- rm -rf $HOME/.cache/pip/log
5163

52-
cache:
53-
directories:
54-
- $HOME/.cache/pip
55-
5664
addons:
5765
apt:
5866
packages:

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# For more information about tox, see https://tox.readthedocs.io/en/latest/
22
[tox]
33
minversion = 3.4.0
4-
envlist = lint,py27,py35,py36,py37,devel,distros
4+
envlist = lint,py27,py35,py36,py37,py38,devel,distros
55
skipsdist = True
66
skip_missing_interpreters = True
77
isolated_build = True

0 commit comments

Comments
 (0)