From 907e4cdd472ebb70ddb27c58c52e6222a850fe3e Mon Sep 17 00:00:00 2001 From: mpeterv Date: Sun, 20 Mar 2016 22:37:03 +0300 Subject: [PATCH] Attempt 2 to test on travis OS X --- .travis.yml | 39 +++++++++++++++++++++++---------------- 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 31226f2..032b9d4 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,23 +1,30 @@ language: python -sudo: false -os: - - linux - - osx - -cache: - directories: test/cache - -python: - - "2.7" - - "3.2" - - "3.5" +matrix: + include: + - os: linux + sudo: false + python: 2.7 + cache: + directories: test/cache + - os: linux + sudo: false + python: 3.2 + cache: + directories: test/cache + - os: linux + sudo: false + python: 3.5 + cache: + directories: test/cache + - os: osx + language: generic install: - - pip install pyflakes - - pip install pep8 + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip install pyflakes; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pip install pep8; fi script: - - pyflakes . - - pep8 . + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pyflakes .; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pep8 .; fi - ./test.sh