add requirements files for simulating RHEL 7 and Debian 9

This commit is contained in:
kakwa 2019-02-07 22:07:28 +01:00
parent 70140f966a
commit 13bfbdcbbc
4 changed files with 38 additions and 10 deletions

View File

@ -9,7 +9,7 @@ before_install:
- '[ "$TEST_PEP8" == "1" ] || sudo ./tests/test_env/deploy.sh'
install:
- pip install -e .
- pip install -e -r $REQ_FILE
- "if [[ $TEST_PEP8 == '1' ]]; then pip install pycodestyle; fi"
- pip install passlib
- pip install coveralls
@ -22,15 +22,33 @@ script: "if [[ $TEST_PEP8 == '1' ]]; then pycodestyle --repeat --show-source --e
matrix:
include:
- python: "2.7"
env: TEST_PEP8=1
env:
TEST_PEP8=1
REQ_FILE=requirements.txt
- python: "2.7"
env: TEST_PEP8=0
- python: "3.5"
env: TEST_PEP8=0
- python: "3.6"
env: TEST_PEP8=0
env:
TEST_PEP8=0
REQ_FILE=requirements-el7.txt
- python: "2.7"
env:
TEST_PEP8=0
REQ_FILE=requirements-stretch.txt
- python: "2.7"
env:
TEST_PEP8=0
REQ_FILE=requirements.txt
- python: "3.4"
env: TEST_PEP8=0
env:
TEST_PEP8=0
REQ_FILE=requirements-el7.txt
- python: "3.5"
env:
TEST_PEP8=0
REQ_FILE=requirements-stretch.txt
- python: "3.6"
env:
TEST_PEP8=0
REQ_FILE=requirements.txt
after_success:
- coveralls

4
requirements-el7.txt Normal file
View File

@ -0,0 +1,4 @@
CherryPy>=3.0.0
PyYAML
Mako
python-ldap==2.4.15

4
requirements-stretch.txt Normal file
View File

@ -0,0 +1,4 @@
CherryPy>=3.0.0
PyYAML
Mako
python-ldap==2.4.28

View File

@ -48,8 +48,9 @@ role=dc
sambacmd=samba-tool
adpass=qwertyP455
systemctl unmask samba-ad-dc
hostname ad.ldapcherry.org
/etc/init.d/dnsmasq stop
pkill -9 dnsmasq
kill -9 `cat /var/run/samba/smbd.pid`
@ -75,10 +76,11 @@ mv /var/lib/samba/private/krb5.conf /etc/krb5.conf
sleep 5
systemctl start samba-ad-dc
/etc/init.d/samba-ad-dc start
cat /var/log/samba/*
sleep 5
netstat -apn | grep samba
ss -apn | grep samba