Skip to content
Snippets Groups Projects
Commit 1ca92c51 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

debian package test depends on the build

parent 66950f39
No related branches found
No related tags found
1 merge request!359Resolve "use database migration framework"
Pipeline #
...@@ -36,8 +36,8 @@ build_war: ...@@ -36,8 +36,8 @@ build_war:
build_debian_package: build_debian_package:
image: debian image: debian
stage: build stage: build
only: tags:
- tags - privileged
artifacts: artifacts:
paths: paths:
- "debian/*.deb" - "debian/*.deb"
...@@ -59,11 +59,14 @@ test_debian_package: ...@@ -59,11 +59,14 @@ test_debian_package:
alias: debian-repo alias: debian-repo
tags: tags:
- privileged - privileged
dependencies:
- build_debian_package
script: script:
- apt-get update - apt-get update
- apt-get install -y ssh software-properties-common dirmngr wget curl - apt-get install -y ssh software-properties-common dirmngr wget curl
- wget https://minerva-dev.lcsb.uni.lu/tmp/minerva_12.0.0_amd64.deb - ls debian
- echo "PUT minerva_12.0.0_amd64.deb /docker/incoming" | sftp -o StrictHostKeyChecking=no user@debian-repo - debian_file=$(ls debian/*.deb)
- echo "PUT debian/$debian_file /docker/incoming" | sftp -o StrictHostKeyChecking=no user@debian-repo
- ssh root@debian-repo /usr/local/sbin/reprepro-import - ssh root@debian-repo /usr/local/sbin/reprepro-import
- apt-add-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" - apt-add-repository "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main"
- apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886 - apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment