Skip to content
Snippets Groups Projects

Resolve "Debian package: use dbconfig-common"

Merged Piotr Gawron requested to merge 469-debian-package-use-dbconfig-common into master
1 file
+ 13
13
Compare changes
  • Side-by-side
  • Inline
+ 13
13
@@ -25,7 +25,7 @@ test_backend 1 15:
script:
#xvfb is for X11 connection used by some parts of the java code: https://stackoverflow.com/a/47575851/1127920
- apt-get update
- apt-get install -y xvfb
- DEBIAN_FRONTEND=noninteractive apt-get install -y xvfb
- Xvfb :99 &
- export DISPLAY=:99
@@ -203,9 +203,9 @@ build_war:
- minerva.war
script:
- apt-get update
- apt-get install -y curl gnupg git ant
- DEBIAN_FRONTEND=noninteractive apt-get install -y curl gnupg git ant
- curl -sL https://deb.nodesource.com/setup_9.x | bash -
- apt-get install -y nodejs
- DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs
- ant maven-build
- cp web/target/web-1.0.war minerva.war
@@ -214,9 +214,9 @@ java_11_compatibility:
stage: test
script:
- apt-get update
- apt-get install -y curl gnupg git ant
- DEBIAN_FRONTEND=noninteractive apt-get install -y curl gnupg git ant
- curl -sL https://deb.nodesource.com/setup_9.x | bash -
- apt-get install -y nodejs
- DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs
- mvn clean install -DskipTests=true
@@ -225,9 +225,9 @@ dependency_conflict_check:
stage: test
script:
- apt-get update
- apt-get install -y curl gnupg git ant
- DEBIAN_FRONTEND=noninteractive apt-get install -y curl gnupg git ant
- curl -sL https://deb.nodesource.com/setup_9.x | bash -
- apt-get install -y nodejs
- DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs
- mvn clean install -DskipTests=true
- set +e
@@ -254,7 +254,7 @@ build_debian_package:
- mkdir web/target/
- mv minerva.war web/target/web-1.0.war
- apt-get update
- apt-get install -y dh-make build-essential lintian devscripts xsltproc fakeroot xsltproc docbook-xsl
- DEBIAN_FRONTEND=noninteractive apt-get install -y dh-make build-essential lintian devscripts xsltproc fakeroot xsltproc docbook-xsl
- export DEBFULLNAME="Piotr Gawron"
- export DEBEMAIL="piotr.gawron@uni.lu"
- debian/create-debian-pkg.sh
@@ -274,7 +274,7 @@ test_upgrade_debian_package:
- build_debian_package
script:
- apt-get update
- apt-get install -y ssh software-properties-common dirmngr wget curl apt-transport-https
- DEBIAN_FRONTEND=noninteractive apt-get install -y ssh software-properties-common dirmngr wget curl apt-transport-https
- debian_file=$(ls debian/*.deb)
- version=$(echo $debian_file| cut -f2 -d"_")
- echo "PUT $debian_file /docker/incoming" | sftp -o StrictHostKeyChecking=no user@debian-repo
@@ -292,7 +292,7 @@ test_upgrade_debian_package:
- mv /usr/sbin/policy-rc.d /usr/sbin/policy-rc.d.backup
- mv gitlab-ci-policy-rc.d /usr/sbin/policy-rc.d
- chmod 0755 /usr/sbin/policy-rc.d
- apt-get install -y --allow-unauthenticated minerva
- DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated minerva
#local repository with new version
- apt-add-repository "deb http://debian-repo/ unstable main"
@@ -324,7 +324,7 @@ test_install_debian_package:
- build_debian_package
script:
- apt-get update
- apt-get install -y ssh software-properties-common dirmngr wget curl
- DEBIAN_FRONTEND=noninteractive apt-get install -y ssh software-properties-common dirmngr wget curl
- debian_file=$(ls debian/*.deb)
- echo "PUT $debian_file /docker/incoming" | sftp -o StrictHostKeyChecking=no user@debian-repo
- ssh root@debian-repo /usr/local/sbin/reprepro-import
@@ -340,7 +340,7 @@ test_install_debian_package:
- mv /usr/sbin/policy-rc.d /usr/sbin/policy-rc.d.backup
- mv gitlab-ci-policy-rc.d /usr/sbin/policy-rc.d
- chmod 0755 /usr/sbin/policy-rc.d
- apt-get install -y --allow-unauthenticated minerva
- DEBIAN_FRONTEND=noninteractive apt-get install -y --allow-unauthenticated minerva
- mv /usr/sbin/policy-rc.d.backup /usr/sbin/policy-rc.d
- service tomcat8 start
#we need to wait a bit for tomcat start
@@ -392,7 +392,7 @@ test_deploy_with_db_without_superadmin_rights:
- tags
script:
- apt-get update
- apt-get install -y postgresql-client
- DEBIAN_FRONTEND=noninteractive apt-get install -y postgresql-client
- mkdir /etc/minerva
- echo "database.uri=jdbc:postgresql://postgres:5432/test" > /etc/minerva/db.properties
- echo "database.username=test" >> /etc/minerva/db.properties
Loading