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

Introduce code analysis CI pipeline and improve its readability

parent dd5c5c39
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ before_script:
  - pip install virtualenv 
  - virtualenv venv
  - source venv/bin/activate
  - pip install -r requirements.txt

# 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.
@@ -23,7 +24,6 @@ before_script:
# It is also specified that only the master branch will be subject of this job. 
test:
  script:
  - pip install -r requirements.txt
  - python setup.py test
  - ls -la
  - mkdir .public
@@ -34,3 +34,7 @@ test:
    - public
 # only:
 # - master

code_analysis:
  script:
    - bash code-analysis.sh
 No newline at end of file
+5 −2
Original line number Diff line number Diff line
#!/usr/bin/env bash
echo "STATIC CODE ANALYSIS"
echo "===================="
echo

echo "Module analysis:"
echo "MODULE ANALYSIS"
echo "---------------"
pylint ska_skeleton

echo "Tests analysis:"
echo "TESTS ANALYSIS"
echo "--------------"
pylint tests