CI: replace gcc image with debian image
parent
65774fb2d2
commit
8bbe6fa30e
61
.drone.yml
61
.drone.yml
|
@ -1,10 +1,23 @@
|
||||||
pipeline:
|
pipeline:
|
||||||
gcc8:
|
gcc8:
|
||||||
image: gcc:8
|
image: debian:stretch-slim
|
||||||
pull: true
|
pull: true
|
||||||
|
environment:
|
||||||
|
- LANG=C.utf8
|
||||||
commands:
|
commands:
|
||||||
|
- rm /etc/apt/apt.conf.d/docker-clean
|
||||||
- apt-get update -q
|
- apt-get update -q
|
||||||
- apt-get install -qy cmake libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev qt5-default
|
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
||||||
|
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
|
||||||
|
- apt-get install -qy gnupg
|
||||||
|
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
|
||||||
|
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
|
||||||
|
- apt-get update -q
|
||||||
|
- apt-get install -qy build-essential cmake pkg-config
|
||||||
|
- apt-get install -qy -t xenial g++-8
|
||||||
|
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
|
||||||
|
- update-alternatives --set g++ /usr/bin/g++-8
|
||||||
|
- apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev qt5-default
|
||||||
- apt-get install -qy rpm file
|
- apt-get install -qy rpm file
|
||||||
- rm -rf build && mkdir -p build && cd build
|
- rm -rf build && mkdir -p build && cd build
|
||||||
- cmake ..
|
- cmake ..
|
||||||
|
@ -15,12 +28,28 @@ pipeline:
|
||||||
- make package
|
- make package
|
||||||
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
||||||
- make package
|
- make package
|
||||||
|
volumes:
|
||||||
|
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
||||||
|
|
||||||
gcc7:
|
gcc7:
|
||||||
image: gcc:7
|
image: debian:stretch-slim
|
||||||
pull: true
|
pull: true
|
||||||
|
environment:
|
||||||
|
- LANG=C.utf8
|
||||||
commands:
|
commands:
|
||||||
|
- rm /etc/apt/apt.conf.d/docker-clean
|
||||||
- apt-get update -q
|
- apt-get update -q
|
||||||
- apt-get install -qy cmake libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev qt5-default
|
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
||||||
|
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
|
||||||
|
- apt-get install -qy gnupg
|
||||||
|
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
|
||||||
|
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
|
||||||
|
- apt-get update -q
|
||||||
|
- apt-get install -qy build-essential cmake pkg-config
|
||||||
|
- apt-get install -qy -t xenial g++-7
|
||||||
|
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 100
|
||||||
|
- update-alternatives --set g++ /usr/bin/g++-7
|
||||||
|
- apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev qt5-default
|
||||||
- apt-get install -qy rpm file
|
- apt-get install -qy rpm file
|
||||||
- rm -rf build && mkdir -p build && cd build
|
- rm -rf build && mkdir -p build && cd build
|
||||||
- cmake ..
|
- cmake ..
|
||||||
|
@ -31,17 +60,19 @@ pipeline:
|
||||||
- make package
|
- make package
|
||||||
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
||||||
- make package
|
- make package
|
||||||
|
volumes:
|
||||||
|
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
||||||
|
|
||||||
gcc6:
|
gcc6:
|
||||||
image: gcc:6
|
image: debian:stretch-slim
|
||||||
pull: true
|
pull: true
|
||||||
|
environment:
|
||||||
|
- LANG=C.utf8
|
||||||
commands:
|
commands:
|
||||||
- echo "deb http://deb.debian.org/debian jessie-backports main" >> /etc/apt/sources.list.d/backports.list
|
- rm /etc/apt/apt.conf.d/docker-clean
|
||||||
- echo "deb http://deb.debian.org/debian stretch main" >> /etc/apt/sources.list.d/stretch.list
|
|
||||||
- echo "APT::Default-Release \"jessie\";" >> /etc/apt/apt.conf.d/00default_release
|
|
||||||
- apt-get update -q
|
- apt-get update -q
|
||||||
- apt-get install -qy -t stretch libvsqlitepp-dev libboost-all-dev
|
- apt-get install -qy build-essential cmake pkg-config
|
||||||
- apt-get install -qy -t jessie-backports cmake
|
- apt-get install -qy libvsqlitepp-dev libboost-all-dev libxdg-basedir-dev qt5-default
|
||||||
- apt-get install -qy libxdg-basedir-dev qt5-default
|
|
||||||
- apt-get install -qy rpm file
|
- apt-get install -qy rpm file
|
||||||
- rm -rf build && mkdir -p build && cd build
|
- rm -rf build && mkdir -p build && cd build
|
||||||
- cmake ..
|
- cmake ..
|
||||||
|
@ -52,8 +83,12 @@ pipeline:
|
||||||
- make package
|
- make package
|
||||||
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
- cmake -DWITH_DEB=OFF -DWITH_RPM=ON ..
|
||||||
- make package
|
- make package
|
||||||
|
volumes:
|
||||||
|
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
||||||
|
|
||||||
|
|
||||||
prepare_release:
|
prepare_release:
|
||||||
image: gcc:6
|
image: debian:stretch-slim
|
||||||
pull: true
|
pull: true
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
@ -61,6 +96,7 @@ pipeline:
|
||||||
- cp -v build/whyblocked-${DRONE_TAG}_x86_64.tar.gz .
|
- cp -v build/whyblocked-${DRONE_TAG}_x86_64.tar.gz .
|
||||||
- cp -v build/whyblocked_${DRONE_TAG}-0_amd64.deb .
|
- cp -v build/whyblocked_${DRONE_TAG}-0_amd64.deb .
|
||||||
- cp -v build/whyblocked-${DRONE_TAG}-0.x86_64.rpm .
|
- cp -v build/whyblocked-${DRONE_TAG}-0.x86_64.rpm .
|
||||||
|
|
||||||
gitea_release:
|
gitea_release:
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
pull: true
|
pull: true
|
||||||
|
@ -77,6 +113,7 @@ pipeline:
|
||||||
checksum:
|
checksum:
|
||||||
- sha256
|
- sha256
|
||||||
- sha512
|
- sha512
|
||||||
|
|
||||||
notify:
|
notify:
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
pull: true
|
pull: true
|
||||||
|
|
Loading…
Reference in New Issue