Commit 07349e86 authored by Bruno S. Morgado's avatar Bruno S. Morgado
Browse files

ST-53 Remove venv as a dependency and use exclusively pipenv

parent 5ba797e1
Loading
Loading
Loading
Loading
+4 −9
Original line number Diff line number Diff line
@@ -7,16 +7,13 @@ image: python:latest
# If cache is defined outside the scope of jobs, it means it is set globally and all jobs will use that definition
cache:
  paths:
    - venv/
    
# before_script is used to define the command that should be run before all jobs, including deploy jobs, but after the restoration of artifacts. 
# This can be an array or a multi-line string.
before_script:
  - python -V  # Print out python version for debugging
  - pip install virtualenv 
  - virtualenv venv
  - source venv/bin/activate
  - pip install -r requirements.txt
  - pip install pipenv
  - pipenv install

# The YAML file defines a set of jobs with constraints stating when they should be run. 
# You can specify an unlimited number of jobs which are defined as top-level elements with an arbitrary name and always have to contain at least the script clause.
@@ -24,7 +21,7 @@ before_script:
# It is also specified that only the master branch will be subject of this job. 
test:
  script:
  - python setup.py test
  - pipenv run python setup.py test
  - ls -la
  - mkdir .public
  - cp -r htmlcov/* .public
@@ -32,9 +29,7 @@ test:
  artifacts:
    paths:
    - public
 # only:
 # - master

code_analysis:
  script:
    - bash code-analysis.sh
 No newline at end of file
    - pipenv run bash code-analysis.sh
 No newline at end of file
+1 −2
Original line number Diff line number Diff line
@@ -7,8 +7,7 @@ Install
-------

**Always** use a virtual environment. [Pipenv](https://pipenv.readthedocs.io/en/latest/) is now Python's officially
recommended method and the one used by default in this repo. **WARNING:** `requirements.txt` will be deprecated and
removed from this repo in the future.
recommended method and the one used by default in this repo.

Follow these steps at the project root:

environment.yml

deleted100644 → 0
+0 −8
Original line number Diff line number Diff line
name: ska-skeleton
dependencies:
  - pygments
  - setuptools
  - pytest
  - pytest-cov
  - pylint
  - pytest-pylint
 No newline at end of file

requirements.txt

deleted100644 → 0
+0 −14