Skip to content

Commit

Permalink
Merges Pipfile branch with master branch.
Browse files Browse the repository at this point in the history
Allows for users to use pipenv with Pipfile and Pipfile.lock.

Fixes Cyb3r-Jak3/pystalk#3
  • Loading branch information
Cyb3r-Jak3 committed Mar 25, 2020
1 parent 2553969 commit 06467de
Show file tree
Hide file tree
Showing 4 changed files with 534 additions and 23 deletions.
29 changes: 14 additions & 15 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,34 @@ Coverage:
- htmlcov/*
- bandit.json
before_script:
- pip install -U pip
- pip install -U pip pipenv
- curl https://deepsource.io/cli | sh
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- pip install -r requirements.txt --quiet
- pip install coverage --quiet
- coverage run -a --source . ./PyStalk.py ./utils/ExamplePhotos/ -t -d
- coverage run -a --source . ./PyStalk.py ./utils/ExamplePhotos/Panasonic_DMC-FZ30.jpg ./utils/ExamplePhotos/DSCN0010.jpg -t -d
- pipenv install --dev
- pipenv install coverage
- pipenv run coverage run -a --source . ./PyStalk.py ./utils/ExamplePhotos/ -t -d
- pipenv run coverage run -a --source . ./PyStalk.py ./utils/ExamplePhotos/Panasonic_DMC-FZ30.jpg ./utils/ExamplePhotos/DSCN0010.jpg -t -d
after_script:
- coverage report
- coverage html
- coverage xml
- pipenv run coverage report
- pipenv run coverage html
- pipenv run coverage xml
- ./bin/deepsource report --analyzer test-coverage --key python --value-file ./coverage.xml
- ./cc-test-reporter after-build
- bash <(curl -s https://codecov.io/bash)

.check:
stage: Code_Checking
before_script:
- pip install -U pip
- pip install -U pip pipenv
script:
- pip install -r requirements.txt bandit pylint flake8 --quiet
# - pip install -r requirements-dev.txt --quiet
- pylint --ignored-classes=_socketobject PyStalk.py ./utils/ ./modules/
- flake8 PyStalk.py ./utils/ ./modules/ --statistics --show-source
- bandit -r -f json PyStalk.py ./utils/ ./modules/ > bandit.json
- time python3 ./PyStalk.py ./utils/ExamplePhotos/ -d -t
- pipenv install --dev --skip-lock
- pipenv run pylint --ignored-classes=_socketobject PyStalk.py ./utils/ ./modules/
- pipenv run flake8 PyStalk.py ./utils/ ./modules/ --statistics --show-source
- pipenv run bandit -r -f json PyStalk.py ./utils/ ./modules/ > bandit.json
- time pipenv run python3 ./PyStalk.py ./utils/ExamplePhotos/ -d -t
artifacts:
paths:
- bandit.json
Expand Down
19 changes: 19 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
flake8 = "*"
pylint = "*"
bandit = "*"
pytest = "*"

[packages]
hachoir = "*"
plotly = "*"
pandas = "*"
dash = "*"

[requires]
python_version = "3.7"
Loading

0 comments on commit 06467de

Please sign in to comment.