2020-11-04 01:22:11 +00:00
|
|
|
# This file is a template, and might need editing before it works on your project.
|
|
|
|
# see https://docs.gitlab.com/ee/ci/yaml/README.html for all available options
|
|
|
|
|
2020-11-04 01:40:43 +00:00
|
|
|
variables:
|
|
|
|
DEFAULT_IMAGE: debian:stable
|
|
|
|
|
|
|
|
default:
|
|
|
|
image: ${DEFAULT_IMAGE}
|
|
|
|
interruptible: true
|
|
|
|
only:
|
|
|
|
- tags
|
2020-11-04 01:22:11 +00:00
|
|
|
|
|
|
|
before_script:
|
|
|
|
- echo "Before script section"
|
|
|
|
- echo "For example you might run an update here or install a build dependency"
|
|
|
|
- echo "Or perhaps you might print out some debugging details"
|
|
|
|
|
|
|
|
after_script:
|
|
|
|
- echo "After script section"
|
|
|
|
- echo "For example you might do some cleanup here"
|
|
|
|
|
|
|
|
build1:
|
|
|
|
stage: build
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- build/*
|
|
|
|
script:
|
|
|
|
- echo "Do your build here"
|
2020-11-04 01:40:43 +00:00
|
|
|
- apt-get update
|
|
|
|
- apt-get -y install git dh-make build-essential autoconf autotools-dev
|
2020-11-04 01:22:11 +00:00
|
|
|
- cp LICENSE debian/copyright
|
|
|
|
- apt-get -y build-dep .
|
|
|
|
- dpkg-buildpackage -uc -us
|
|
|
|
- mkdir build
|
|
|
|
- mv ../*.deb build/
|
|
|
|
|
|
|
|
test1:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- echo "Do a test here"
|
|
|
|
- echo "For example run a test suite"
|
|
|
|
|
|
|
|
test2:
|
|
|
|
stage: test
|
|
|
|
script:
|
|
|
|
- echo "Do another parallel test here"
|
|
|
|
- echo "For example run a lint test"
|
|
|
|
|
|
|
|
deploy1:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- echo "Do your deploy here"
|