gitlab-ci: Make 'buster' the default image for the CI pipeline
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
This commit is contained in:
parent
7d0c5b74f6
commit
fa8780288f
|
@ -1,11 +1,10 @@
|
||||||
variables:
|
variables:
|
||||||
GITLAB_CI_IMAGE_DEBIAN: 'debian:bullseye'
|
GITLAB_CI_IMAGE_DEBIAN: 'debian:buster'
|
||||||
stages:
|
stages:
|
||||||
- style
|
- style
|
||||||
- test
|
- test
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
style:
|
style:
|
||||||
image: ${GITLAB_CI_IMAGE_DEBIAN}
|
image: ${GITLAB_CI_IMAGE_DEBIAN}
|
||||||
stage: style
|
stage: style
|
||||||
|
@ -15,11 +14,14 @@ style:
|
||||||
- if (test $(astyle --dry-run --options=.astylerc --formatted lib/*.cc | wc -l) -eq 0); then (exit 0); else (exit 1); fi
|
- if (test $(astyle --dry-run --options=.astylerc --formatted lib/*.cc | wc -l) -eq 0); then (exit 0); else (exit 1); fi
|
||||||
- if (test $(astyle --dry-run --options=.astylerc --formatted lib/*.h | wc -l) -eq 0); then (exit 0); else (exit 1); fi
|
- if (test $(astyle --dry-run --options=.astylerc --formatted lib/*.h | wc -l) -eq 0); then (exit 0); else (exit 1); fi
|
||||||
- if (test $(astyle --dry-run --options=.astylerc --formatted include/satnogs/*.h | wc -l) -eq 0); then (exit 0); else (exit 1); fi
|
- if (test $(astyle --dry-run --options=.astylerc --formatted include/satnogs/*.h | wc -l) -eq 0); then (exit 0); else (exit 1); fi
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: ${GITLAB_CI_IMAGE_DEBIAN}
|
image: ${GITLAB_CI_IMAGE_DEBIAN}
|
||||||
stage: test
|
stage: test
|
||||||
before_script:
|
before_script:
|
||||||
|
- apt-get update -qq
|
||||||
|
- apt-get install -qq -y gnupg libcurl4
|
||||||
|
- echo 'deb http://download.opensuse.org/repositories/home:/librespace:/satnogs-unstable/Debian_10/ /' > /etc/apt/sources.list.d/home:librespace:satnogs-unstable.list
|
||||||
|
- apt-key adv --fetch-keys https://download.opensuse.org/repositories/home:librespace:satnogs-unstable/Debian_10/Release.key
|
||||||
- apt-get update -qq -y
|
- apt-get update -qq -y
|
||||||
- >
|
- >
|
||||||
apt-get install -q -y
|
apt-get install -q -y
|
||||||
|
@ -61,10 +63,9 @@ test:
|
||||||
- make install
|
- make install
|
||||||
- ldconfig
|
- ldconfig
|
||||||
- python3 -c "import satnogs"
|
- python3 -c "import satnogs"
|
||||||
|
|
||||||
debian:
|
debian:
|
||||||
stage: build
|
stage: build
|
||||||
image: debian:buster
|
image: ${GITLAB_CI_IMAGE_DEBIAN}
|
||||||
before_script:
|
before_script:
|
||||||
- apt-get update -qq
|
- apt-get update -qq
|
||||||
- apt-get install -qq -y gnupg libcurl4
|
- apt-get install -qq -y gnupg libcurl4
|
||||||
|
|
Loading…
Reference in New Issue