forked from slackapi/bolt-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
30 lines (30 loc) · 1.06 KB
/
.travis.yml
File metadata and controls
30 lines (30 loc) · 1.06 KB
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
language:
python
python:
- "3.6"
- "3.7"
- "3.8"
install:
- python setup.py install
- pip install -U pip
# https://discuss.python.org/t/announcement-pip-20-2-release/4863
- pip config set global.use-feature 2020-resolver
- pip install "pytest>=5,<6" "pytest-cov>=2,<3"
script:
# testing without aiohttp
- travis_retry pytest tests/slack_bolt/
- travis_retry pytest tests/scenario_tests/
# testing for adapters
- pip install -e ".[adapter]"
- travis_retry pytest tests/adapter_tests/
# testing with aiohttp
- pip install -e ".[async]"
- pip install "pytest-asyncio<1"
- travis_retry pytest tests/slack_bolt_async/
- travis_retry pytest tests/scenario_tests_async/
- travis_retry pytest tests/adapter_tests_async/
# run all tests just in case
- travis_retry python setup.py test
# Run pytype only for Python 3.8
- if [ ${TRAVIS_PYTHON_VERSION:0:3} == "3.8" ]; then pip install "pytype" && pytype slack_bolt/; fi
- if [ ${TRAVIS_PYTHON_VERSION:0:3} == "3.8" ]; then pytest --cov=slack_bolt/ && bash <(curl -s https://codecov.io/bash); fi