Commit 24b3bfde authored by Arianne Bortolan's avatar Arianne Bortolan 🏳🌈 Committed by Diego Giovane Pasqualin
Browse files

SCRUM#213: Create le-all to install all necessary le6 packages

parent 649ee7ca
Pipeline #11137 passed with stages
in 40 seconds
package/debian/files
package/debian/debhelper-build-stamp
package/debian/le-all
le-*.tar.gz
le-*.build
le-*.dsc
le-*.changes
le-*.deb
le-*.debhelper.log
le-*.substvars
## Template para empacotamento utilizando o Gitlab-ci.
stages:
- build
- test
- deploy
build:
stage: build
artifacts:
paths:
- build/
tags:
- debian-packaging
script:
- apt-get update && apt-get install -y devscripts
- LINE=$(head -n 1 package/debian/changelog)
- PACKAGE=$(echo $LINE | cut -d' ' -f1)
- VERSION=$(echo $LINE | cut -d' ' -f2 | grep -o -E '[0-9]*\.[0-9]*\.[0-9]*')
- tar --exclude=debian -czf ${PACKAGE}_${VERSION}.orig.tar.gz package/*
- cd package
- debuild -us -uc
- cd ../
- mkdir build/
- mv ${PACKAGE}* build/
- echo "Estágio de Build finalizado."
test:
stage: test
tags:
- ubuntu
- regular
script:
- dpkg -i build/*.deb
- echo "Estágio de Teste finalizado"
dependencies:
- build
deploy:
stage: deploy
only:
- master
tags:
- ubuntu
- regular
script:
- echo "Estágio de Deploy"
- apt-get update && apt-get install -y dput ssh
- eval $(ssh-agent -s)
- ssh-add <(echo "$PRIV_KEY")
- dput -u -f --config=dput.cf repo build/*.changes
- echo "Estágio de Deploy finalizado"
dependencies:
- build
[repo]
fqdn = repo.c3sl.ufpr.br
method = scp
incoming = /home/repository/www/le6/incoming
allow_unsigned_uploads = 1
ssh_config_options = User=repository
StrictHostKeyChecking=no
post_upload_command = ssh -l repository -i ~/.ssh/id_rsa repo.c3sl.ufpr.br "reprepro -Vb /home/repository/www/le6 processincoming default"
le-all (0.0.1) testing; urgency=medium
* Install all packages necessary to set up Linux Educacional 6
-- Diego Pasqualin <dpasqualin@c3sl.ufpr.br> Mon, 07 Aug 2017 09:26:01 +0000
Source: le-all
Section: metapackages
Priority: optional
Maintainer: C3SL <contato@c3sl.ufpr.br>
Uploaders: Diego Pasqualin <dpasqualin@c3sl.ufpr.br>
Build-Depends: debhelper (>=9)
Standards-Version: 3.9.8
Vcs-Git: https://gitlab.c3sl.ufpr.br/le6/le-all.git
Package: le-all
Architecture: all
Depends: ${misc:Depends}
Recommends: le-autoupgrade, le-conf, le-edubar, le-epoptes, le-interface, le-sys-apps, le-user-apps
Description: Set up Linux Educacional 6
This metapackage install all necessary packages to set up Linux Educacional 6
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: le-all
Source: https://gitlab.c3sl.ufpr.br/le6/le-all
Files: *
Copyright: 2017 Diego Pasqualin <dpasqualin@c3sl.ufpr.br>
2017 C3SL <contato@c3sl.ufpr.br>
License: GPL-3+
On Debian systems, the complete text of the GNU General Public
License, version 3, can be found in /usr/share/common-licenses/GPL-3.
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
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