.gitlab-ci.yml 972 Bytes
Newer Older
1 2
image: stadtgestalten/build

Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
3
before_script:
4 5 6 7
    # 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
8
    - pip install --upgrade pip
9
    - pip install --upgrade -r requirements.txt
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
10

11 12
make_test:
    stage: test
13 14
    script:
        - make test
15

16 17
# The latest built deb package is available under the following URL:
#   https://git.hack-hro.de/stadtgestalten/stadtgestalten/builds/artifacts/master/raw/build/debian/export/stadtgestalten.deb?job=deb-package
18 19 20 21 22 23
make_deb_package:
    stage: deploy
    only:
        - tags
        - triggers
        - schedules
Konrad Mohrfeldt's avatar
Konrad Mohrfeldt committed
24
    script:
25 26 27 28
        - make dist-deb-packages-directory
    artifacts:
        paths:
            - build/debian/export/stadtgestalten.deb
29
        expire_in: 1w