language: python
python:
  - "2.7"
  - "3.6"

install:
  - pip install -U -r requirements.txt --upgrade-strategy=eager
  - pip install -U -r requirements_test.txt --upgrade-strategy=eager
  - python setup.py install

script:
  - pytest -v -n 2 --durations=10 -m 'not slow'

language: python
python:
  - "2.7"
  - "3.6"

install:
  - pip install -U -r requirements.txt --upgrade-strategy=eager
  - pip install -U -r requirements_test.txt --upgrade-strategy=eager
  - python setup.py install

jobs:
  include:
    - stage: test
    - name: pytest
      install: 
        - pip install -U -r requirements.txt --upgrade-strategy=eager
        - pip install -U -r requirements_test.txt --upgrade-strategy=eager
        - python setup.py install
      script:
        - pytest -v -n 2 --durations=10 -m 'not slow'

    - name: setup.py test
      install:
        - pip install cxroots
        - pip download cxroots --no-deps
        - tar -xzf cxroots-*.tar.gz
        - cd cxroots-*
      script:
        - python setup.py test --addopts "-v -n 2 -m 'not slow'"

Include "setup.py test" as job
Include "setup.py test" as job
