This commit is contained in:
parent
b320cafa40
commit
da57e4f1ed
58
.drone.yml
58
.drone.yml
|
@ -1,15 +1,31 @@
|
||||||
pipeline:
|
# -*- fill-column: 1000 -*-
|
||||||
download:
|
kind: pipeline
|
||||||
|
name: build x86_64
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: debian-package-cache
|
||||||
|
host:
|
||||||
|
path: /var/cache/debian-package-cache
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
event:
|
||||||
|
exclude:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: download
|
||||||
image: plugins/download
|
image: plugins/download
|
||||||
pull: true
|
settings:
|
||||||
source: https://schlomp.space/attachments/e1c1e64b-1192-4037-aad4-95238ad648b0
|
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
|
||||||
|
CXXFLAGS: -pipe -O2
|
||||||
|
LANG: C.utf8
|
||||||
commands:
|
commands:
|
||||||
- rm /etc/apt/apt.conf.d/docker-clean
|
- rm /etc/apt/apt.conf.d/docker-clean
|
||||||
- apt-get update -q
|
- apt-get update -q
|
||||||
|
@ -26,19 +42,22 @@ pipeline:
|
||||||
- update-alternatives --set g++ /usr/bin/g++-8
|
- update-alternatives --set g++ /usr/bin/g++-8
|
||||||
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
||||||
- apt-get install -qy -t sid libcurlpp-dev
|
- apt-get install -qy -t sid libcurlpp-dev
|
||||||
- dpkg -i mastodon-cpp.deb
|
- apt-get -qy install ./mastodon-cpp.deb
|
||||||
- rm -rf build && mkdir -p build && cd build
|
- rm -rf build && mkdir -p build && cd build
|
||||||
- cmake ..
|
- cmake ..
|
||||||
- make VERBOSE=1
|
- make VERBOSE=1
|
||||||
- make install DESTDIR=install
|
- make install DESTDIR=install
|
||||||
volumes:
|
volumes:
|
||||||
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
- 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
|
||||||
|
CXXFLAGS: -pipe -O2
|
||||||
|
LANG: C.utf8
|
||||||
commands:
|
commands:
|
||||||
- rm /etc/apt/apt.conf.d/docker-clean
|
- rm /etc/apt/apt.conf.d/docker-clean
|
||||||
- apt-get update -q
|
- apt-get update -q
|
||||||
|
@ -55,19 +74,24 @@ pipeline:
|
||||||
- update-alternatives --set g++ /usr/bin/g++-5
|
- update-alternatives --set g++ /usr/bin/g++-5
|
||||||
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
- apt-get install -qy libcurl4-openssl-dev libjsoncpp-dev libboost-all-dev
|
||||||
- apt-get install -qy -t sid libcurlpp-dev
|
- apt-get install -qy -t sid libcurlpp-dev
|
||||||
- dpkg -i mastodon-cpp.deb
|
- apt-get install -qy ./mastodon-cpp.deb
|
||||||
- rm -rf build && mkdir -p build && cd build
|
- rm -rf build && mkdir -p build && cd build
|
||||||
- cmake ..
|
- cmake ..
|
||||||
- make VERBOSE=1
|
- make VERBOSE=1
|
||||||
- make install DESTDIR=install
|
- make install DESTDIR=install
|
||||||
volumes:
|
volumes:
|
||||||
- /var/cache/debian-package-cache:/var/cache/apt/archives
|
- 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
|
||||||
|
username:
|
||||||
|
from_secret: email_username
|
||||||
|
password:
|
||||||
|
from_secret: email_password
|
||||||
when:
|
when:
|
||||||
status: [ changed, failure ]
|
status: [ changed, failure ]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user