<commit_before>image: docker:latest

stages:
  - linting
  - unittesting
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables:
  DOCKER_DRIVER: overlay2

services:
  - docker:dind

#before_script:
#  - docker info

linting:
  stage: linting
  image: python:latest
  script:
    - pip3 install flake8
    - flake8 .

unittesting:
  tags:
    - pi
  stage: unittesting
  image: python:latest
  script:
    - pip3 install pyyaml
    - pip3 install RPi.GPIO
    - pip3 install structlog
    - pip3 install numpy
    - cd station-code
    - python3 test_collectweather.py -v<commit_msg>Adding prereqs/dependencies for pipeline<commit_after>image: docker:latest

stages:
  - linting
  - unittesting
# When using dind, it's wise to use the overlayfs driver for
# improved performance.
variables:
  DOCKER_DRIVER: overlay2

services:
  - docker:dind

#before_script:
#  - docker info

linting:
  stage: linting
  image: python:latest
  script:
    - pip3 install flake8
    - flake8 .

unittesting:
  tags:
    - pi
  stage: unittesting
  image: python:latest
  script:
    - pip3 install pyyaml
    - pip3 install RPi.GPIO
    - pip3 install structlog
    - pip3 install numpy
    - apt-get install git
    - git clone https://github.com/PrzemoF/bmp183.git
    - git clone git://gist.github.com/3151375.git
    - git clone https://github.com/adafruit/Adafruit_Python_DHT.git
    - cd station-code
    - python3 test_collectweather.py -v
{'fraction_non_alphanumeric': 0.08225696804894629, 'fraction_numerical': 0.019034670292318152, 'mean_word_length': 2.873684210526316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1248154', 'n_tokens_mistral': 533, 'n_tokens_neox': 507, 'n_words': 136}