mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
trying to cleanup travis build env
This commit is contained in:
parent
b8a65a44b6
commit
f7bbff4cec
22
.travis.yml
22
.travis.yml
@ -1,30 +1,26 @@
|
|||||||
|
sudo: required
|
||||||
|
dist: trusty
|
||||||
|
language: python
|
||||||
|
|
||||||
env:
|
env:
|
||||||
- TRAVIS="yes"
|
- TRAVIS="yes"
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- '[ "$TEST_PEP8" == "1" ] || curl https://ftp-master.debian.org/keys/archive-key-7.0.asc | sudo apt-key add -'
|
|
||||||
- '[ "$TEST_PEP8" == "1" ] || echo "deb http://http.debian.net/debian wheezy-backports main" | sudo tee -a /etc/apt/sources.list'
|
|
||||||
- '[ "$TEST_PEP8" == "1" ] || echo "deb http://http.debian.net/debian wheezy main" | sudo tee -a /etc/apt/sources.list'
|
|
||||||
- '[ "$TEST_PEP8" == "1" ] || sudo /sbin/ifconfig'
|
|
||||||
- '[ "$TEST_PEP8" == "1" ] || sudo apt-get update -qq'
|
|
||||||
- '[ "$TEST_PEP8" == "1" ] || sudo rm /etc/dpkg/dpkg.cfg.d/multiarch'
|
|
||||||
- '[ "$TEST_PEP8" == "1" ] || sudo ./tests/test_env/deploy.sh'
|
- '[ "$TEST_PEP8" == "1" ] || sudo ./tests/test_env/deploy.sh'
|
||||||
|
|
||||||
language: python
|
|
||||||
python:
|
python:
|
||||||
- "2.7"
|
- "2.7"
|
||||||
# - "3.2"
|
|
||||||
# - "3.3"
|
|
||||||
# command to install dependencies
|
|
||||||
install:
|
install:
|
||||||
- pip install -e .
|
- pip install -e .
|
||||||
- "if [[ $TEST_PEP8 == '1' ]]; then pip install pep8; fi"
|
- "if [[ $TEST_PEP8 == '1' ]]; then pip install pep8; fi"
|
||||||
- pip install passlib
|
- pip install passlib
|
||||||
- pip install coveralls
|
- pip install coveralls
|
||||||
|
|
||||||
# command to run tests
|
# command to run tests
|
||||||
script:
|
#
|
||||||
- coverage run --source=ldapcherry setup.py test
|
#script:
|
||||||
- "if [[ $TEST_HIREDIS == '1' ]]; then pip install hiredis; fi"
|
# - coverage run --source=ldapcherry setup.py test
|
||||||
script: "if [[ $TEST_PEP8 == '1' ]]; then pep8 --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc . scripts/ldapcherryd; else coverage run --source=ldapcherry setup.py test; fi"
|
script: "if [[ $TEST_PEP8 == '1' ]]; then pep8 --repeat --show-source --exclude=.venv,.tox,dist,docs,build,*.egg,tests,misc . scripts/ldapcherryd; else coverage run --source=ldapcherry setup.py test; fi"
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
@ -6,20 +6,6 @@ then
|
|||||||
DEBIAN_FRONTEND=noninteractive apt-get install kpartx -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
DEBIAN_FRONTEND=noninteractive apt-get install kpartx -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install lsb-base libattr1 -t wheezy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
DEBIAN_FRONTEND=noninteractive apt-get install lsb-base libattr1 -t wheezy -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install samba python-samba samba-vfs-modules -t wheezy-backports -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
DEBIAN_FRONTEND=noninteractive apt-get install samba python-samba samba-vfs-modules -t wheezy-backports -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
||||||
truncate -s 512M file.img
|
|
||||||
fdisk file.img <<EOF
|
|
||||||
n
|
|
||||||
p
|
|
||||||
1
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
w
|
|
||||||
q
|
|
||||||
EOF
|
|
||||||
kpartx -a file.img
|
|
||||||
mkfs.ext4 /dev/mapper/loop0p1
|
|
||||||
mount /dev/mapper/loop0p1 /var/lib/samba/
|
|
||||||
else
|
else
|
||||||
DEBIAN_FRONTEND=noninteractive apt-get install ldap-utils slapd samba python-samba samba-vfs-modules -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
DEBIAN_FRONTEND=noninteractive apt-get install ldap-utils slapd samba python-samba samba-vfs-modules -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -f -q -y
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user