forked from ArturSpirin/test_junkie
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (29 loc) · 1.44 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: python
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
before_install:
- if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then (sudo apt-get install -y python3-dev gcc); fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then (sudo apt-get install -y python-dev gcc); fi
install:
- pip install -r requirements.txt
- python setup.py install
before_script:
- export PYTHONPATH=$PYTHONPATH:$(pwd)
script:
- if [[ $TRAVIS_PYTHON_VERSION != 2.7 ]]; then (py.test --cov=test_junkie tests/); fi
# Abnormal issues when using pytest on python 2, such as deadlocks and threads not starting.
# Works perfectly fine outside of pytest on python 2. Also works fine with/without pytest on python 3.
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then (python tests/test_advanced_features.py); fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then (python tests/on_class/test_cancel.py); fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then (python tests/reporting/test_reporting.py); fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then (py.test --cov=test_junkie tests/
--ignore=tests/test_advanced_features.py
--ignore=tests/reporting/test_reporting.py
--ignore=tests/on_class/test_cancel.py
--ignore=tests/test_threading.py); fi
after_success:
- codecov -t $CODECOV_TOKEN