.gitlab-ci.yml - fixed test:debian

This commit is contained in:
Oscar Krause 2022-12-29 07:54:01 +01:00
parent f074eab401
commit c938b81172

View File

@ -104,6 +104,7 @@ test:
script:
# test installation
- apt-get install -q -y ./build/build.deb --fix-missing
- openssl req -x509 -newkey rsa:2048 -nodes -out /etc/fastapi-dls/webserver.crt -keyout /etc/fastapi-dls/webserver.key -days 7 -subj "/C=DE/O=GitLab-CI/OU=Test/CN=localhost"
# copy example config from GitLab-CI-Variables
#- cat ${EXAMPLE_CONFIG} > /etc/fastapi-dls/env
# start service in background
@ -133,6 +134,10 @@ test:ubuntu:
test:archlinux:
image: archlinux:base
rules:
- changes:
- .PKGBUILD/**/*
- app/**/*
needs:
- job: build:pacman
artifacts: true
@ -172,9 +177,6 @@ deploy:apt:
stage: deploy
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- changes:
- .DEBIAN/**/*
- app/**/*
needs:
- job: build:apt
artifacts: true
@ -213,14 +215,11 @@ deploy:apt:
deploy:pacman:
image: archlinux:base-devel
stage: deploy
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
# - changes:
# - .PKGBUILD/**/*
# - app/**/*
needs:
- job: build:pacman
artifacts: true
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
script:
- source .PKGBUILD/PKGBUILD
# fastapi-dls-1.0-1-any.pkg.tar.zst