-
-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy path.travis.yml
More file actions
40 lines (34 loc) · 778 Bytes
/
.travis.yml
File metadata and controls
40 lines (34 loc) · 778 Bytes
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
branches:
only:
- master
language: python
python:
- "3.5"
- "3.6"
- "3.7"
env:
- CODACY_PROJECT_TOKEN=${CodacyToken}
cache:
- pip
# command to install dependencies
before_script:
- sudo apt-get update
- sudo apt-get install python3
- sudo apt-get install python3-pip
- sudo apt-get install python3-setuptools
- pip3 install --upgrade setuptools
- pip3 install -e .
- pip3 install pytest-cov pytest
- pip3 install codecov
- pip3 install coveralls
- pip3 install codacy-coverage
- sudo apt-get update
# command to run tests
script:
- pytest -vs -x --cov=./urlchecker tests/test_*.py
after_success:
- codecov
- coveralls
- coverage xml
- export CODACY_PROJECT_TOKEN=${CodacyToken}
- python-codacy-coverage -r coverage.xml