Skip to content
Snippets Groups Projects

Add build

Merged Erick Hitter requested to merge add/build into master
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
  • eca99ffb
    Is the directory sufficient? · eca99ffb
    Erick Hitter authored
    ```
    This package has a Debian revision number but there does not seem to be
    an appropriate original tar file or .orig directory in the parent directory;
    (expected one of nginx_1.17.0-1~eth.orig.tar.gz, nginx_1.17.0-1~eth.orig.tar.bz2,
    nginx_1.17.0-1~eth.orig.tar.lzma,  nginx_1.17.0-1~eth.orig.tar.xz or nginx-package-build.orig)
    ```
+ 79
7
# TODO: replace with container that provides all build deps.
image: containers.ethitter.com:443/docker/images/debian:stretch
before_script:
- apt-get update
- apt-get install devscripts build-essential lintian
- echo $NGINX_VERSION
- echo $NGINX_BINARY
# Relies on latest binary build artifact from https://git.ethitter.com/debian/nginx-build.
- curl -o nginx-build "${NGINX_BINARY}"
- chmod +x nginx-build
- ./nginx-build -V
build-deb:jessie:
stage: build
image: containers.ethitter.com:443/docker/images/debian:jessie
variables:
NGINX_BINARY: $NGINX_BINARY_JESSIE
NGINX_VERSION: $NGINX_VERSION_JESSIE
script:
- cd source
- debuild -us -uc
artifacts:
paths:
- nginx_${NGINX_VERSION}*
- nginx-dbgsym_*
test-deb:jessie:
stage: test
image: containers.ethitter.com:443/docker/images/debian:jessie
before_script:
- date
script:
- dpkg -i nginx_${NGINX_VERSION_JESSIE}*.deb
- nginx -V
dependencies:
- build-deb:jessie
package:
build-deb:stretch:
stage: build
image: containers.ethitter.com:443/docker/images/debian:stretch
variables:
NGINX_BINARY: $NGINX_BINARY_STRETCH
NGINX_VERSION: $NGINX_VERSION_STRETCH
script:
- cd source
- debuild -us -uc
artifacts:
paths:
- nginx_${NGINX_VERSION}*
- nginx-dbgsym_*
test-deb:stretch:
stage: test
image: containers.ethitter.com:443/docker/images/debian:stretch
before_script:
- date
script:
- dpkg -i nginx_${NGINX_VERSION_STRECTH}*.deb
- nginx -V
dependencies:
- build-deb:stretch
build-deb:buster:
stage: build
image: containers.ethitter.com:443/docker/images/debian:buster
variables:
NGINX_BINARY: $NGINX_BINARY_BUSTER
NGINX_VERSION: $NGINX_VERSION_BUSTER
script:
- cd source
- debuild -us -uc
artifacts:
paths:
- nginx_${NGINX_VERSION}*
- nginx-dbgsym_*
test-deb:buster:
stage: test
image: containers.ethitter.com:443/docker/images/debian:buster
before_script:
- date
script:
- echo "Call debuild here"
- dpkg -i nginx_${NGINX_VERSION_BUSTER}*.deb
- nginx -V
dependencies:
- build-deb:buster
Loading