This commit is contained in:
parent
b320cafa40
commit
da57e4f1ed
158
.drone.yml
158
.drone.yml
|
@ -1,73 +1,97 @@
|
||||||
pipeline:
|
# -*- fill-column: 1000 -*-
|
||||||
download:
|
kind: pipeline
|
||||||
image: plugins/download
|
name: build x86_64
|
||||||
pull: true
|
|
||||||
source: https://schlomp.space/attachments/e1c1e64b-1192-4037-aad4-95238ad648b0
|
volumes:
|
||||||
|
- name: debian-package-cache
|
||||||
|
host:
|
||||||
|
path: /var/cache/debian-package-cache
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: download
|
||||||
|
image: plugins/download
|
||||||
|
settings:
|
||||||
|
source: https://schlomp.space/tastytea/mastodon-cpp/releases/download/0.111.2/libmastodon-cpp_0.111.2-0_amd64.deb
|
||||||
destination: mastodon-cpp.deb
|
destination: mastodon-cpp.deb
|
||||||
|
|
||||||
gcc8:
|
- name: gcc8
|
||||||
image: debian:stretch-slim
|
image: debian:stretch-slim
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
- LANG=C.utf8
|
CXX: g++-8
|
||||||
commands:
|
CXXFLAGS: -pipe -O2
|
||||||
- rm /etc/apt/apt.conf.d/docker-clean
|
LANG: C.utf8
|
||||||
- apt-get update -q
|
commands:
|
||||||
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
- rm /etc/apt/apt.conf.d/docker-clean
|
||||||
- echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
|
- apt-get update -q
|
||||||
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
|
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
||||||
- apt-get install -qy gnupg
|
- echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
|
||||||
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
|
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
|
||||||
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
|
- apt-get install -qy gnupg
|
||||||
- apt-get update -q
|
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
|
||||||
- apt-get install -qy build-essential cmake pkg-config
|
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
|
||||||
- apt-get install -qy -t xenial g++-8
|
- apt-get update -q
|
||||||
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
|
- apt-get install -qy build-essential cmake pkg-config
|
||||||
- update-alternatives --set g++ /usr/bin/g++-8
|
- apt-get install -qy -t xenial g++-8
|
||||||
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
|
||||||
- apt-get install -qy -t sid libcurlpp-dev
|
- update-alternatives --set g++ /usr/bin/g++-8
|
||||||
- dpkg -i mastodon-cpp.deb
|
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
||||||
- rm -rf build && mkdir -p build && cd build
|
- apt-get install -qy -t sid libcurlpp-dev
|
||||||
- cmake ..
|
- apt-get -qy install ./mastodon-cpp.deb
|
||||||
- make VERBOSE=1
|
- rm -rf build && mkdir -p build && cd build
|
||||||
- make install DESTDIR=install
|
- cmake ..
|
||||||
volumes:
|
- make VERBOSE=1
|
||||||
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
- make install DESTDIR=install
|
||||||
|
volumes:
|
||||||
|
- name: debian-package-cache
|
||||||
|
path: /var/cache/apt/archives
|
||||||
|
|
||||||
gcc5:
|
- name: gcc5
|
||||||
image: debian:stretch-slim
|
image: debian:stretch-slim
|
||||||
pull: true
|
pull: always
|
||||||
environment:
|
environment:
|
||||||
- LANG=C.utf8
|
CXX: g++-8
|
||||||
commands:
|
CXXFLAGS: -pipe -O2
|
||||||
- rm /etc/apt/apt.conf.d/docker-clean
|
LANG: C.utf8
|
||||||
- apt-get update -q
|
commands:
|
||||||
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
- rm /etc/apt/apt.conf.d/docker-clean
|
||||||
- echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
|
- apt-get update -q
|
||||||
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
|
- echo "APT::Default-Release \"stretch\";" >> /etc/apt/apt.conf.d/00default_release
|
||||||
- apt-get install -qy gnupg
|
- echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list.d/sid.list
|
||||||
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
|
- echo "deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu xenial main" >> /etc/apt/sources.list.d/ubuntu-toolchain-r.list
|
||||||
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
|
- apt-get install -qy gnupg
|
||||||
- apt-get update -q
|
- gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x60c317803a41ba51845e371a1e9377a2ba9ef27f
|
||||||
- apt-get install -qy build-essential cmake pkg-config
|
- gpg --armor --export 0x60c317803a41ba51845e371a1e9377a2ba9ef27f | apt-key add -
|
||||||
- apt-get install -qy -t xenial g++-5
|
- apt-get update -q
|
||||||
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 100
|
- apt-get install -qy build-essential cmake pkg-config
|
||||||
- update-alternatives --set g++ /usr/bin/g++-5
|
- apt-get install -qy -t xenial g++-5
|
||||||
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
- update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-5 100
|
||||||
- apt-get install -qy -t sid libcurlpp-dev
|
- update-alternatives --set g++ /usr/bin/g++-5
|
||||||
- dpkg -i mastodon-cpp.deb
|
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
||||||
- rm -rf build && mkdir -p build && cd build
|
- apt-get install -qy -t sid libcurlpp-dev
|
||||||
- cmake ..
|
- apt-get install -qy ./mastodon-cpp.deb
|
||||||
- make VERBOSE=1
|
- rm -rf build && mkdir -p build && cd build
|
||||||
- make install DESTDIR=install
|
- cmake ..
|
||||||
volumes:
|
- make VERBOSE=1
|
||||||
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
- make install DESTDIR=install
|
||||||
|
volumes:
|
||||||
|
- name: debian-package-cache
|
||||||
|
path: /var/cache/apt/archives
|
||||||
|
|
||||||
notify:
|
- name: notify
|
||||||
image: drillster/drone-email
|
image: drillster/drone-email
|
||||||
pull: true
|
pull: always
|
||||||
|
settings:
|
||||||
host: cryptoparty-celle.de
|
host: cryptoparty-celle.de
|
||||||
secrets: [ email_username, email_password ]
|
|
||||||
from: drone@tzend.de
|
from: drone@tzend.de
|
||||||
when:
|
username:
|
||||||
status: [ changed, failure ]
|
from_secret: email_username
|
||||||
|
password:
|
||||||
|
from_secret: email_password
|
||||||
|
when:
|
||||||
|
status: [ changed, failure ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user