add python osx 2.7 to travis testing

main
Fabien C. Y. Benureau 7 years ago
parent 12e8285674
commit ec0b383319

@ -1,27 +1,43 @@
os: # list of environments to test
- linux
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "3.6"
matrix: matrix:
include: include:
- language: generic - os: linux
os: osx language: python
python: python: 2.7
- "3" - os: linux
language: python
python: 3.3
- os: linux
language: python
python: 3.4
- os: linux
language: python
python: 3.5
- os: linux
language: python
python: 3.6
- os: osx
language: generic
python: 2.7
before_install:
- python2 --version
- pip2 install -U virtualenv
- virtualenv env -p python2
- source env/bin/activate
- os: osx
language: generic
python: ">=3.6"
before_install: before_install:
- brew update - brew update
- brew outdated python3 || brew install python3 || brew upgrade python3 - brew outdated python3 || brew install python3 || brew upgrade python3
- pip install -U virtualenv - python3 -m venv env
- virtualenv env -p python3
- source env/bin/activate - source env/bin/activate
# command to install dependencies # command to install dependencies
install: install:
- "pip install -r tests/requirements.txt" - python --version
- "python setup.py install" - pip install -r tests/requirements.txt
- python setup.py install
# command to run tests # command to run tests
script: python -m unittest discover script: python -m unittest discover

Loading…
Cancel
Save