"Fossies" - the Fresh Open Source Software Archive

Member "gvm-libs-11.0.1/.circleci/config.yml" (12 May 2020, 2754 Bytes) of package /linux/misc/openvas/gvm-libs-11.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": 11.0.0_vs_11.0.1.

    1 version: 2
    2 jobs:
    3   check_format:
    4     docker:
    5       - image: greenbone/build-env-gvm-libs-master-debian-buster-clang-core
    6     steps:
    7       - checkout
    8       - run:
    9           name: Check Source Format
   10           command: clang-format -i -style=file base/*.{c,h} && git diff --exit-code
   11   test_units:
   12     docker:
   13       - image: greenbone/build-env-gvm-master-debian-stretch-gcc-postgresql
   14     steps:
   15       - checkout
   16       - run:
   17           name: Configure and run unit tests
   18           command: mkdir build && cd build/ && cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=1 .. && make install && make tests && CTEST_OUTPUT_ON_FAILURE=1 make test
   19   build_gcc_core:
   20     docker:
   21       - image: greenbone/build-env-gvm-libs-master-debian-stretch-gcc-core
   22     steps:
   23       - checkout
   24       - run:
   25           name: Configure and Compile
   26           command: mkdir build && cd build/ && cmake -DCMAKE_BUILD_TYPE=Release .. && make install
   27   scan_build:
   28     docker:
   29       - image: greenbone/build-env-gvm-libs-master-debian-stretch-clang-core
   30     steps:
   31       - checkout
   32       - run:
   33           name: Configure and Scan Build
   34           command: mkdir build && cd build/ && scan-build cmake -DCMAKE_BUILD_TYPE=Debug .. && scan-build -o ~/scan-build-report make && [ -z "$(ls -A ~/scan-build-report/)" ]
   35       - store_artifacts:
   36           path: ~/scan-build-report
   37   gen_xml_doc:
   38     docker:
   39       - image: greenbone/code-metrics-doxygen-debian-stretch
   40     steps:
   41       - checkout
   42       - run:
   43           name: Generate documentation (XML)
   44           command: mkdir build && cd build/ && cmake -DSKIP_SRC=1 .. && make doc-xml 2> ~/doxygen-stderr.txt
   45       - store_artifacts:
   46           path: ~/doxygen-stderr.txt
   47       - persist_to_workspace:
   48           root: ~/project/build/doc/generated/
   49           paths:
   50             - xml
   51   doc_coverage:
   52     docker:
   53       - image: circleci/python:3.6
   54     steps:
   55       - attach_workspace:
   56           at: /tmp/workspace
   57       - checkout
   58       - run:
   59           name: Install coverxygen and codecov
   60           command: |
   61             python3 -m venv venv
   62             . venv/bin/activate
   63             pip install 'coverxygen>=1.3.1' codecov
   64       - run:
   65           name: Establish documentation coverage
   66           command: |
   67             . venv/bin/activate
   68             python -m coverxygen --src-dir /root/project --xml-dir /tmp/workspace/xml --output lcov.info
   69       - run:
   70           name: Upload coverage to Codecov
   71           command: |
   72             . venv/bin/activate
   73             codecov -F documentation -X gcov -f lcov.info
   74 
   75 workflows:
   76   version: 2
   77   build_and_test:
   78     jobs:
   79       - check_format
   80       - test_units
   81       - build_gcc_core
   82       - scan_build
   83       - gen_xml_doc
   84       - doc_coverage:
   85           requires:
   86             - gen_xml_doc