forked from jborean93/smbprotocol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (30 loc) · 775 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
sudo: required
language: python
dist: bionic
python:
- 2.7
- 3.5
- 3.6
- 3.7
- 3.8
services:
- docker
env:
global:
- SMB_USER: smbuser
- SMB_PASSWORD: smbpassword
- SMB_SERVER: 127.0.0.1
- SMB_SHARE: share
- SMB_PORT: 445
install:
- docker run -d -p $SMB_PORT:445 -v $(pwd)/build-scripts:/app -w /app -e SMB_USER=$SMB_USER -e SMB_PASSWORD=$SMB_PASSWORD -e SMB_SHARE=$SMB_SHARE centos:7 /bin/bash /app/setup_samba.sh;
- pip install --upgrade pip setuptools
- pip install -r requirements-test.txt
- pip install .
- pip install coveralls
# make sure the Samba service on the container is up and running
- python ./build-scripts/check_samba.py
script:
- py.test -v --pep8 --cov smbclient --cov smbprotocol --cov-report term-missing
after_success:
- coveralls