stages:
  - test
  - build
  - package

btsoot_test:
  stage: test
  script:
    - python3.6 -m py_compile btsoot.py

copy_test:
  stage: test
  script:
    - cd copy
    - scan-build make test
    - cd ..

copy_build:
  stage: build
  script:
    - cd copy
    - make
    - cd ..
  artifacts:
    paths:
      - ./copy/btsoot-copy

dpkg:
  stage: package
  environment: Testing
  script:
    - mkdir -p ./btsoot_$CI_BUILD_TAG/DEBIAN/
    - cp ./control ./btsoot/DEBIAN/control
    - mkdir -p ./btsoot_$CI_BUILD_TAG/usr/local/bin
    - mkdir -p ./btsoot_$CI_BUILD_TAG/etc/btsoot/scans
    - cp btsoot-copy ./btsoot_$CI_BUILD_TAG/usr/local/bin/btsoot-copy
    - cp btsoot.py ./btsoot_$CI_BUILD_TAG/usr/local/bin/btsoot
    - dpkg-deb --build ./btsoot_$CI_BUILD_TAG
  artifacts:
    paths:
      - btsoot_$CI_BUILD_TAG.deb
  only:
    - tags

stages:
  - test
  - build
  - package

btsoot_test:
  stage: test
  script:
    - python3.6 -m py_compile btsoot.py

copy_test:
  stage: test
  script:
    - cd copy
    - scan-build make test
    - cd ..

copy_build:
  stage: build
  script:
    - cd copy
    - make
    - cd ..
  artifacts:
    paths:
      - ./copy/btsoot-copy

dpkg:
  stage: package
  environment: Testing
  script:
    - mkdir -p ./btsoot_$CI_BUILD_TAG/DEBIAN/
    - python3.6 package_deb_replace_version.py $CI_BUILD_TAG
    - mkdir -p ./btsoot_$CI_BUILD_TAG/usr/local/bin
    - mkdir -p ./btsoot_$CI_BUILD_TAG/etc/btsoot/scans
    - cp btsoot-copy ./btsoot_$CI_BUILD_TAG/usr/local/bin/btsoot-copy
    - cp btsoot.py ./btsoot_$CI_BUILD_TAG/usr/local/bin/btsoot
    - dpkg-deb --build ./btsoot_$CI_BUILD_TAG
  artifacts:
    paths:
      - btsoot_$CI_BUILD_TAG.deb
  only:
    - tags

Add new path to gitlab ci
Add new path to gitlab ci
