forked from attzonko/mmpy_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (37 loc) · 980 Bytes
/
.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
sudo: false
env:
global:
- CC_TEST_REPORTER_ID=b0fed3b6b9b09683bf744113f1effa146b532c2fc05f21d0b3f29787807bca01
- BOT_URL='http://localhost:8065/api/v4'
- DRIVERBOT_LOGIN='[email protected]'
- DRIVERBOT_NAME='driverbot'
- DRIVERBOT_PASSWORD='driverbot_password'
- TESTBOT_LOGIN='[email protected]'
- TESTBOT_NAME='testbot'
- TESTBOT_PASSWORD='testbot_password'
- BOT_TEAM='test-team'
- DOCKER_CONTAINER_NAME=mattermost
- DOCKER_NETWORK=default
- BOT_CHANNEL=public
- BOT_PRIVATE_CHANNEL=private
branches:
only:
- master
services:
- docker
language: python
matrix:
include:
- python: "3.6"
- python: "3.7"
- python: "3.8"
- python: "3.9"
install:
- pip install -r requirements.txt
- pip install pytest-cov
- pip install .
before_script:
- tests/setup.sh
script: pytest --cov=mmpy_bot tests/ --cov-report xml
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT