Merge branch 'develop' of ssh://gitlab.datenpol.at:122/odoo/tz-austria into develop
						commit
						8d105f964e
					
				|  | @ -1,24 +1,31 @@ | ||||||
| #!/usr/bin/env bash | #!/usr/bin/env bash | ||||||
| if python -c "pylint_odoo" &> /dev/null; then | if ! $(python -c "import pylint" &> /dev/null); then | ||||||
|  |     echo 'Pylint is not installed and is going to be installed now!' | ||||||
|  |     sudo pip install pylint | ||||||
|  | else | ||||||
|  |     echo 'Pylint is already installed. Continue ...' | ||||||
|  | fi | ||||||
|  | 
 | ||||||
|  | if ! $(python -c "import pylint_odoo" &> /dev/null); then | ||||||
|     echo 'The pylint module "pylint-odoo" is not installed and is going to be installed now!' |     echo 'The pylint module "pylint-odoo" is not installed and is going to be installed now!' | ||||||
|     sudo pip install --upgrade git+https://github.com/oca/pylint-odoo.git |     sudo pip install --upgrade git+https://github.com/oca/pylint-odoo.git | ||||||
| else | else | ||||||
|     echo 'The pylint module "pylint-odoo" is already installed. Continue ...' |     echo 'The pylint module "pylint-odoo" is already installed. Continue ...' | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| if python -c "git_pylint_commit_hook" &> /dev/null; then | if ! $(python -c "import git_pylint_commit_hook" &> /dev/null); then | ||||||
|     echo 'git-pylint-commit-hook is not insalled and is going to be isntalled now!' |     echo 'git-pylint-commit-hook is not insalled and is going to be isntalled now!' | ||||||
|     sudo pip install git-pylint-commit-hook |     sudo pip install git-pylint-commit-hook | ||||||
| else | else | ||||||
|     echo 'git-pylint-commit-hook is already installed. Continue ...' |     echo 'git-pylint-commit-hook is already installed. Continue ...' | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| if [ ! -f ~/gitrepos/dp-int/pylintrc ]; then | if [ ! -f ~/gitrepos/dp-int/tools/pylint/pylintrc ]; then | ||||||
|     echo "The pylintrc file can't be found in ~/gitrepos/dp-int/!" |     echo "The pylintrc file can't be found in ~/gitrepos/dp-int/tools/pylint/!" | ||||||
|     echo "Please clone the git repository dp-int" |     echo "Please clone the git repository dp-int" | ||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| cd $(git rev-parse --show-toplevel) | cd $(git rev-parse --show-toplevel) | ||||||
| ln -s -f ~/gitrepos/dp-int/pylintrc ~/.pylintrc | ln -s -f ~/gitrepos/dp-int/tools/pylint/pylintrc ~/.pylintrc | ||||||
| ln -s -f $(git rev-parse --show-toplevel)/dev/pylint/pre-commit $(git rev-parse --show-toplevel)/.git/hooks/pre-commit | ln -s -f $(git rev-parse --show-toplevel)/dev/pylint/pre-commit $(git rev-parse --show-toplevel)/.git/hooks/pre-commit | ||||||
| echo 'pre-commit hook created!' | echo 'pre-commit hook created!' | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue