You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.1 KiB
53 lines
1.1 KiB
# list of environments to test
|
|
matrix:
|
|
include:
|
|
- os: linux
|
|
language: python
|
|
python: 2.7
|
|
- 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: linux
|
|
language: python
|
|
python: 3.7
|
|
dist: xenial
|
|
sudo: true
|
|
- 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:
|
|
- brew update
|
|
- brew outdated python3 || brew install python3 || brew upgrade python3
|
|
- python3 -m venv env
|
|
- source env/bin/activate
|
|
|
|
allow_failures:
|
|
- python: 3.3
|
|
|
|
# command to install dependencies
|
|
install:
|
|
- python --version
|
|
- export PUBS_TESTS_MODE=ONLINE
|
|
|
|
# command to run tests
|
|
script:
|
|
- PUBS_TESTS_MODE=MOCK python setup.py test
|
|
- PUBS_TESTS_MODE=COLLECT python setup.py test
|