travis: better pip usage

This commit is contained in:
satreix
2016-03-18 23:24:38 -07:00
parent 0ac947099c
commit 4e7d197c7f
5 changed files with 26 additions and 31 deletions
-1
View File
@@ -1 +0,0 @@
* text=auto
+11 -12
View File
@@ -4,20 +4,18 @@
.project .project
.pydevproject .pydevproject
# coverage generated: # coverage generated
/cover-html/ /cover-html/
.coverage .coverage
.coveralls.yml .coveralls.yml
# Compiled source # # Compiled source
###################
*.pyc *.pyc
*.py~ *.py~
*.pyproj *.pyproj
*.sln *.sln
# Headphones files # # Headphones files
######################
*.log *.log
*.db* *.db*
*.db-journal *.db-journal
@@ -26,27 +24,25 @@ version.lock
logs/* logs/*
cache/* cache/*
# HTTPS Cert/Key # # HTTPS Cert/Key
##################
*.crt *.crt
*.key *.key
*.csr *.csr
# OS generated files # # OS generated files
######################
.DS_Store? .DS_Store?
.DS_Store .DS_Store
ehthumbs.db ehthumbs.db
Icon? Icon?
Thumbs.db Thumbs.db
#Ignore files generated by PyCharm # Ignore files generated by PyCharm
.idea/* .idea/*
#Ignore files generated by vi # Ignore files generated by vi
*.swp *.swp
#Ignore files build by Visual Studio # Ignore files build by Visual Studio
*.obj *.obj
*.exe *.exe
*.pdb *.pdb
@@ -72,3 +68,6 @@ obj/
[Rr]elease*/ [Rr]elease*/
_ReSharper*/ _ReSharper*/
.vscode .vscode
# Python virtual env
venv
+6 -17
View File
@@ -2,36 +2,25 @@
# http://about.travis-ci.org/docs/ # http://about.travis-ci.org/docs/
language: python language: python
sudo: false sudo: false
cache: cache:
pip: true pip: true
directories: directories:
- lib - lib
# Available Python versions:
# http://about.travis-ci.org/docs/user/ci-environment/#Python-VM-images
python: python:
- "2.6" - "2.6"
matrix: - "2.7"
include:
- python: "2.7"
env: SENDCOVERAGE=1
# pylint 1.4 does not run under python 2.6
install: install:
- pip install pyOpenSSL - pip install -r requirements-dev.txt
- pip install pylint==1.3.1
- pip install pyflakes
- pip install pep8
# coverage stuff:
- pip install coveralls
- pip install coverage
script: script:
- pep8 headphones - pep8 headphones
- pyflakes headphones - pyflakes headphones
- nosetests - nosetests
after_success: after_success:
# coverage stuff: - if [[ $TRAVIS_PYTHON_VERSION == "2.7" ]]; then coveralls; fi
- if [ $SENDCOVERAGE ]; then coveralls; fi
+1 -1
View File
@@ -143,7 +143,7 @@ def initialize(config_file):
SOFT_CHROOT = SoftChroot(str(CONFIG.SOFT_CHROOT)) SOFT_CHROOT = SoftChroot(str(CONFIG.SOFT_CHROOT))
if SOFT_CHROOT.isEnabled(): if SOFT_CHROOT.isEnabled():
logger.info("Soft-chroot enabled for dir: %s", str(CONFIG.SOFT_CHROOT)) logger.info("Soft-chroot enabled for dir: %s", str(CONFIG.SOFT_CHROOT))
except exceptions.SoftChrootError as e: except headphones.exceptions.SoftChrootError as e:
logger.error("SoftChroot error: %s", e) logger.error("SoftChroot error: %s", e)
raise e raise e
+8
View File
@@ -0,0 +1,8 @@
coverage==4.0.3
coveralls==1.1
mock==1.3.0
nose==1.3.7
pep8==1.7.0
pyflakes==1.1.0
pylint==1.3.1 # pylint 1.4 does not run under python 2.6
pyOpenSSL==0.15.1