"Fossies" - the Fresh Open Source Software Archive

Member "ospd-2.0.1/.circleci/config.yml" (12 May 2020, 2561 Bytes) of package /linux/misc/openvas/ospd-2.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "config.yml": 2.0.0_vs_2.0.1.

    1 version: 2.1
    2 
    3 executors:
    4   python-35:
    5     docker:
    6       - image: circleci/python:3.5
    7         environment:
    8             PIPENV_VENV_IN_PROJECT: true
    9     working_directory: ~/repo
   10   python-36:
   11     docker:
   12       - image: circleci/python:3.6
   13         environment:
   14             PIPENV_VENV_IN_PROJECT: true
   15     working_directory: ~/repo
   16   python-37:
   17     docker:
   18       - image: circleci/python:3.7
   19         environment:
   20             PIPENV_VENV_IN_PROJECT: true
   21     working_directory: ~/repo
   22 
   23 commands:
   24   build:
   25     description: "Download and build"
   26     steps:
   27       - checkout
   28       - run:
   29           name: Install dependencies
   30           command: |
   31             pipenv install
   32 
   33       - run:
   34           name: Install ospd
   35           command: |
   36             pipenv run pip install .
   37   test:
   38     description: "Download and run tests"
   39     steps:
   40       - checkout
   41       - run:
   42           name: Install dependencies
   43           command: |
   44             pipenv install
   45       - run:
   46           name: Run unit tests
   47           command: pipenv run python -m unittest
   48   test-with-codecov:
   49     description: "Download and run tests with code coverage"
   50     steps:
   51       - checkout
   52       - run:
   53           name: Install dependencies
   54           command: pipenv install
   55       - run:
   56           name: Install codecov
   57           command: |
   58             pipenv run pip install codecov
   59       - run:
   60           name: Run unit tests
   61           command: |
   62             pipenv run coverage run -m unittest
   63       - run:
   64           name: Upload coverage to Codecov
   65           command: pipenv run codecov
   66   lint:
   67     description: "Lint python files"
   68     steps:
   69       - checkout
   70       - run:
   71           name: Install dependencies
   72           command: pipenv install --dev
   73       - run:
   74           name: Check formatting with black
   75           command: pipenv run black --check ospd
   76       - run:
   77           name: Run pylint
   78           command: |
   79             pipenv run pylint --score=n --disable=R ospd
   80 
   81 jobs:
   82   lint-python-files:
   83     executor: python-36
   84     steps:
   85       - lint
   86   build-35:
   87     executor: python-35
   88     steps:
   89       - build
   90   test-35:
   91     executor: python-35
   92     steps:
   93       - test
   94   build-36:
   95     executor: python-36
   96     steps:
   97       - build
   98   test-36:
   99     executor: python-36
  100     steps:
  101       - test
  102   build-37:
  103     executor: python-37
  104     steps:
  105       - build
  106   test-37:
  107     executor: python-37
  108     steps:
  109       - test-with-codecov
  110 
  111 workflows:
  112   version: 2
  113   build_and_test:
  114     jobs:
  115       # - lint-python-files
  116       - build-35
  117       - test-35
  118       - build-36
  119       - test-36
  120       - build-37
  121       - test-37