.gitlab-ci.yml 615 Bytes
Newer Older
1
before_script:
2 3 4 5
    # Do not use the 'build/' subdirectory, since this would get cleanup up during 'dist-deb'.
    # This directory needs to be listed in debian/source/options in 'extend-diff-ignore'.
    - virtualenv -p python3 "$CI_PROJECT_DIR/gitlab-ci-build-venv"
    - source "$CI_PROJECT_DIR/gitlab-ci-build-venv/bin/activate"
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
6 7
    - pip install --upgrade pip
    - pip install -r requirements.txt
8

9 10 11
test:
    script:
        - make test
12 13

deb-package:
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
14
    script:
15 16 17 18 19
        - make dist-deb-packages-directory
    artifacts:
        paths:
            - build/debian/export/stadtgestalten.deb
        expire_in: 2d