Unverified Commit 6cfafd18 authored by Bruno Morgado's avatar Bruno Morgado Committed by GitHub
Browse files

Merge pull request #1 from ska-telescope/ST-53

ST-53  local development and the CI are now migrated to use pipenv as the package manager
parents 4bc990b2 de87991a
Loading
Loading
Loading
Loading
Loading
+5 −10
Original line number Diff line number Diff line
# GitLab CI in conjunction with GitLab Runner can use Docker Engine to test and build any application.
# Docker, when used with GitLab CI, runs each job in a separate and isolated container using the predefined image that is set up in .gitlab-ci.yml.
# In this case we use the latest python docker image to build and test this project.
image: python:latest
image: python:3.5

# cache is used to specify a list of files and directories which should be cached between jobs. You can only use paths that are within the project workspace.
# 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.
@@ -26,7 +23,7 @@ test:
  tags:
    - docker-machine
  script:
  - python setup.py test
  - pipenv run python setup.py test
  - ls -la
  - mkdir .public
  - cp -r htmlcov/* .public
@@ -34,9 +31,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 −1
Original line number Diff line number Diff line
@@ -20,4 +20,4 @@ sphinxcontrib-websupport = "*"
[dev-packages]

[requires]
python_version = "3.6"
python_version = "3"
+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:

+0 −0

File moved.

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