Skip to content
This repository has been archived by the owner on Feb 17, 2019. It is now read-only.

Commit

Permalink
Merge pull request #32 from webknjaz/refactoring/travis-yml
Browse files Browse the repository at this point in the history
Refactor .travis.yml
  • Loading branch information
obestwalter committed Sep 24, 2018
2 parents 66b9d39 + aec3fdb commit 063322a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 18 deletions.
57 changes: 39 additions & 18 deletions .travis.yml
@@ -1,35 +1,56 @@
conditions: v1

sudo: false
language: python
python:
- '2.7'
- '3.4'
- '3.5'
- '3.6'
- '3.7-dev'
- '2.7'
- '3.4'
- '3.5'
- '3.6'

stages:
- test
- name: nightly
if: type IN (api, cron)

matrix:
jobs:
fast_finish: true

include:
- python: '3.7'
dist: xenial
sudo: required

- stage: nightly
name: Test against unstable/dev build of Python
python: '3.7-dev'

- stage: nightly
name: Test against unstable/master build of tox under Python 3.6
python: '3.6'
env:
TOXENV: tox-master

env:
TOXENV: py
before_install:
- python --version
- uname -a
- lsb_release -a
- uname -a
- lsb_release -a
- virtualenv --version
install:
- pip install -U --pre tox
- tox --version
- virtualenv --version
- pip --version
- pip install -U --pre tox
before_script:
- tox --version
script:
- tox -e py
- tox
after_failure:
- more .tox/log/* | cat
- more .tox/*/log/* | cat
- cat .tox/log/* .tox/*/log/*

before_cache:
- rm -rf $HOME/.cache/pip/log
- rm -rf $HOME/.cache/pip/log
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/pip

notifications:
email:
Expand Down
4 changes: 4 additions & 0 deletions tox.ini
Expand Up @@ -16,6 +16,10 @@ description = test project with {basepython}
extras = dev
commands = pytest {posargs}

[testenv:tox-master]
deps =
-e git://github.com/tox-dev/tox#egg=tox

[testenv:dev]
description = create a development environment with all necessities
extras =
Expand Down

0 comments on commit 063322a

Please sign in to comment.