Commit 671cb42c authored by MARGERY David's avatar MARGERY David
Browse files

[Bug #9792] Update and use build dependencies

parent 6580297a
Pipeline #46940 failed with stages
in 3 minutes and 48 seconds
...@@ -24,8 +24,9 @@ test-for-jessie: &test-for-jessie ...@@ -24,8 +24,9 @@ test-for-jessie: &test-for-jessie
POSTGRES_PASSWORD: oar POSTGRES_PASSWORD: oar
POSTGRES_DB: oar2_test POSTGRES_DB: oar2_test
script: script:
- apt update - apt-get update && apt-get -y --no-install-recommends install devscripts build-essential equivs
- apt install -y postgresql-client git bundler rake libxml2-dev libxslt-dev libicu-dev libmysqlclient-dev libpq-dev nodejs - "sed -i -e 's/default-libmysqlclient-dev/libmysqlclient-dev/' debian/control"
- mk-build-deps -ir -t 'apt-get -y --no-install-recommends'
- bundle install --path vendor/bundle - bundle install --path vendor/bundle
- bundle exec rake db:migrate - bundle exec rake db:migrate
- bundle exec rake db:oar:seed - bundle exec rake db:oar:seed
...@@ -41,8 +42,8 @@ test-for-stretch: ...@@ -41,8 +42,8 @@ test-for-stretch:
- postgres - postgres
- mariadb:10.1 - mariadb:10.1
script: script:
- apt update - apt-get update && apt-get -y --no-install-recommends install devscripts build-essential equivs
- apt install -y postgresql-client git bundler rake libssl-dev libxml2-dev libxslt-dev libicu-dev default-libmysqlclient-dev libpq-dev nodejs - mk-build-deps -ir -t 'apt-get -y --no-install-recommends'
- "sed -i -e 's/host: mysql/host: mariadb/' config/database.yml" - "sed -i -e 's/host: mysql/host: mariadb/' config/database.yml"
- bundle install --path vendor/bundle - bundle install --path vendor/bundle
- bundle exec rake db:migrate - bundle exec rake db:migrate
...@@ -55,10 +56,12 @@ deb-for-jessie: &deb-for-jessie ...@@ -55,10 +56,12 @@ deb-for-jessie: &deb-for-jessie
tags: tags:
- grid5000-docker - grid5000-docker
script: script:
- apt-get update - apt-get update && apt-get -y --no-install-recommends install devscripts build-essential equivs
- apt-get install -y lsb-release git git-core bundler rake libssl-dev libxml2-dev ruby-dev libicu-dev build-essential libmysqlclient-dev libxslt-dev libpq-dev nodejs curl pkg-config - "sed -i -e 's/default-libmysqlclient-dev/libmysqlclient-dev/' debian/control"
- bundle install --path vendor/bundle - mk-build-deps -ir -t 'apt-get -y --no-install-recommends'
- bundle exec rake package:build:debian - apt-get install -y lsb-release ruby-dev curl pkg-config
- bundle install --path vendor/bundle
- bundle exec rake package:build:debian
artifacts: artifacts:
paths: paths:
- pkg/g5k-api*.deb - pkg/g5k-api*.deb
...@@ -70,10 +73,11 @@ deb-for-stretch: ...@@ -70,10 +73,11 @@ deb-for-stretch:
<<: *deb-for-jessie <<: *deb-for-jessie
image: debian:stretch image: debian:stretch
script: script:
- apt-get update - apt-get update && apt-get -y --no-install-recommends install devscripts build-essential equivs
- apt-get install -y lsb-release git git-core bundler rake libxml2-dev ruby-dev libicu-dev build-essential default-libmysqlclient-dev libxslt-dev libpq-dev nodejs curl pkg-config - mk-build-deps -ir -t 'apt-get -y --no-install-recommends'
- bundle install --path vendor/bundle - apt-get install -y lsb-release ruby-dev curl pkg-config
- bundle exec rake package:build:debian - bundle install --path vendor/bundle
- bundle exec rake package:build:debian
.push-packages-script: &push-packages-script | .push-packages-script: &push-packages-script |
echo "Request to push for debian version ${TARGET_DEBIAN_VERSION} for branch ${TARGET_G5K_API_VARIANT}" echo "Request to push for debian version ${TARGET_DEBIAN_VERSION} for branch ${TARGET_G5K_API_VARIANT}"
......
...@@ -3,7 +3,7 @@ Section: unknown ...@@ -3,7 +3,7 @@ Section: unknown
Priority: extra Priority: extra
Maintainer: Grid'5000 developpers <g5k-developers@lists.grid5000.fr> Maintainer: Grid'5000 developpers <g5k-developers@lists.grid5000.fr>
Uploaders: David Margery <david.margery@inria.fr> Uploaders: David Margery <david.margery@inria.fr>
Build-Depends: debhelper (>= 7), libmysqlclient15-dev, libxml2-dev, libxslt-dev, libpq-dev Build-Depends: debhelper (>= 7), git, bundler, rake, libssl-dev, libxml2-dev, libxslt-dev, libicu-dev, default-libmysqlclient-dev, libpq-dev, nodejs
Standards-Version: 3.7.3 Standards-Version: 3.7.3
Homepage: https://api.grid5000.fr Homepage: https://api.grid5000.fr
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment