forked from domainaware/parsedmarc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (34 loc) · 965 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
language: python
os: linux
dist: focal
python:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
# commands to install dependencies
before_install:
- "sudo apt-get update"
- "sudo apt-get install -y libemail-outlook-message-perl"
- "curl -O https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.1.deb"
- "sudo dpkg -i --force-confnew elasticsearch-*.deb"
- "sudo systemctl restart elasticsearch"
- "sudo systemctl --no-pager status elasticsearch"
install:
- "pip install --upgrade pip"
- "pip install -U -r requirements.txt"
# commands to run samples
script:
- "flake8 *.py parsedmarc/*.py"
- "rstcheck --report warning README.rst"
- "cd docs"
- "make html"
- "cd .."
- "coverage run tests.py"
- "python setup.py install"
- "parsedmarc --debug -c ci.ini samples/aggregate/*"
- "parsedmarc --debug -c ci.ini samples/forensic/*"
- "python setup.py sdist"
- "python setup.py bdist_wheel"
after_success:
- "codecov"