Commit 2c90bd8a authored by Carlos Suárez's avatar Carlos Suárez

Update gitlab-ci: only build and package Debian

parent dc0e1b49
...@@ -26,17 +26,13 @@ variables: ...@@ -26,17 +26,13 @@ variables:
script: script:
- git clone $METEO_REPO - git clone $METEO_REPO
- cd meteo && dpkg-checkbuilddeps && dpkg-buildpackage - cd meteo && dpkg-checkbuilddeps && dpkg-buildpackage
- mkdir -p releases
- ls ../
- mv ../*.deb releases/*.deb
only: only:
- tags - tags
artifacts: artifacts:
when: on_success when: on_success
paths: paths:
- releases/* - ./*.deb
## Debian
build:debian: build:debian:
<<: *build_definition <<: *build_definition
...@@ -50,54 +46,3 @@ package:debian: ...@@ -50,54 +46,3 @@ package:debian:
dependencies: dependencies:
- build:debian - build:debian
<<: *debpkg_template <<: *debpkg_template
## Ubuntu
build:ubuntu:
<<: *build_definition
image: ubuntu:bionic
before_script:
- apt-get update -y
- apt-get -y install $DEPENS
package:ubuntu:
image: ubuntu:bionic
dependencies:
- build:ubuntu
<<: *debpkg_template
## Fedora
build:fedora:
<<: *build_definition
image: fedora:30
before_script:
- dnf install $DEPENS_RPM -y
package:fedora:
image: fedora:30
stage: package
before_script:
- dnf install $DEPENS_RPM -y
script:
- rpmdev-setuptree
- cp rpm/meteo.spec ~/rpmbuild/SPECS
- cd ~/rpmbuild
- wget https://gitlab.com/bitseater/meteo/-/archive/0.9.8/meteo-0.9.8.tar.gz
- cp meteo-0.9.8.tar.gz ~/rpmbuild/SOURCES
- QA_SKIP_BUILD_ROOT=1 rpmbuild -v -ba --clean SPECS/meteo.spec
- cd ~/rpmbuild/RPMS/x86_64/
- cp meteo-0.9.8-1.fc30.x86_64.rpm /builds/bitseater/meteo/
- cd ~/rpmbuild/SRPMS/
- cp meteo-0.9.8-1.fc30.src.rpm /builds/bitseater/meteo/
only:
- tags
artifacts:
paths:
- meteo-0.9.8-1.fc30.x86_64.rpm
- meteo-0.9.8-1.fc30.src.rpm
expire_in: 90 days
Markdown is supported
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